Sign inGet Started

bird webhooks client-certificate upload

Usage

Code example
bird webhooks client-certificate upload [flags]

Description

Upload the webhook client certificate

Send the signed certificate first, then each intermediate certificate, as PEM. It replaces the certificate in use. Deliveries can present the previous certificate for up to a few minutes, so receivers must accept both until then.

Build the request from flags, a JSON WebhookClientCertificateUpload 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.

This is destructive and cannot be undone; pass --yes to confirm.

Procedure

Step 3 of 6 of "Present a client certificate on webhook deliveries". Previous: bird webhooks client-certificate create-signing-request. Next: bird webhooks client-certificate update.

Examples

Code example
# print the body shape (no credentials needed)
bird webhooks client-certificate upload --example

# the body it prints:
Code example
{
  "certificate_chain": "-----BEGIN CERTIFICATE-----\nMIIB...\n-----END CERTIFICATE-----\n"
}
Code example
# upload the certificate your CA signed, with its intermediates
bird webhooks client-certificate upload --certificate-chain-file signed-chain.pem --yes

Options

Safety

NameDescription
--yesConfirm the action (required; the CLI never prompts)

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
--certificate-chainPEM-encoded certificates, the signed certificate first, then any intermediate certificates. (required; or in --body-file)
--certificate-chain-fileRead the PEM certificate chain from this file instead of --certificate-chain.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird webhooks client-certificate create-signing-requestCreate a webhook client certificate signing request
bird webhooks client-certificate getGet the webhook client certificate
bird webhooks client-certificate updateUpdate the webhook client certificate settings

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