bxp-cli acme renew¶
Get a new certificate for the names of one that is due.
Usage¶
Renew the certificate in --out-dir, for the same names, with a new key.
It asks the CA when to renew (ACME Renewal Information, RFC 9773), and
renews at a random moment in the window the CA gives. The CA can then
ask for an early renewal: at once after a revocation, or within days
after it replaced its intermediate CA. With a CA that does not give
renewal information, it renews when a third of the certificate's
lifetime is left.
Run it daily from a timer: it does nothing until it is time.
Usage:
bxp-cli acme renew [flags]
Examples:
sudo bxp-cli acme renew --acme-id my-acme --exec "systemctl reload nginx"
Flags:
--challenge string how to prove the names: http-01 (port 80), tls-alpn-01 (port 443) or dns-01 (default "http-01")
--dns-api-url string address of the DNS provider's API, for dns-01 (default "http://localhost:8080")
--exec string a command to run after a renewal, e.g. "systemctl reload nginx"
--force renew now, whatever the CA's renewal window says
-h, --help help for renew
Global Flags:
--acme-id string ID of the ACME endpoint on the BastionXP server
--authority string ID of the certificate authority on the server
(or BXP_CLI_AUTHORITY; default: the one saved by "bxp-cli trust")
--ca-url string address of the BastionXP server, e.g. https://bastionxp.example.com
(or BXP_CLI_CA_URL; default: the one saved by "bxp-cli trust")
--directory string full address of an ACME directory, e.g. https://acme-v02.api.letsencrypt.org/directory
(default: the BastionXP server's, from --ca-url, --authority and --acme-id)
--out-dir string directory for the account key, the certificate and its key (default: ~/.bxp-cli/acme)
--root string path of the CA's root certificate
(or BXP_CLI_ROOT; default: the one saved by "bxp-cli trust")
-v, --verbose show each step on stderr (or BXP_CLI_LOG_LEVEL=debug)
Parent command: bxp-cli acme