Sign inGet Started

bird workspace mtls certificate-authorities create

Usage

Code example
bird workspace mtls certificate-authorities create [flags]

Description

Add an mTLS certificate authority

Send one CA certificate as PEM. Prefer the issuing CA, because a root CA also trusts every certificate issued under it. To rotate, add the new CA before you remove the old one. Returns 409 when the CA limit of the workspace or of its organization is reached, or when the CA is already registered.

Build the request from flags, a JSON MTLSCertificateAuthorityCreate body via --body-file ("-" reads stdin), or both — a flag overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.

Browser confirmation: the review link goes to stderr, not stdout, as next[].url in a JSON line that also carries confirmation_id. The command then waits and prints the result on stdout; --confirmation-id waits on an existing one.

Procedure

Step 1 of 3 of "Require client certificates on API requests". Next: bird workspace mtls update.

Examples

Code example
# print the body shape (no credentials needed)
bird workspace mtls certificate-authorities create --example

# the body it prints:
Code example
{
  "certificate": "-----BEGIN CERTIFICATE-----\nMIIB...\n-----END CERTIFICATE-----\n"
}
Code example
# add the issuing CA from a file
bird workspace mtls certificate-authorities create --certificate-file issuing-ca.pem

Options

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--certificateOne PEM-encoded X.509 certificate. (required; or in --body-file)
--certificate-fileRead the PEM certificate from this file instead of --certificate.
--response-schemaPrint the fields this command returns, then exit
--confirmation-idWait for an existing confirmation of this exact request
NameDescription
bird workspace mtls certificate-authorities deleteRemove an mTLS certificate authority
bird workspace mtls certificate-authorities getGet an mTLS certificate authority
bird workspace mtls certificate-authorities listList mTLS certificate authorities

Continue with the documentation, guides and examples for this topic.