bxp-cli acme issue¶
Get a TLS certificate.
Usage¶
Get a certificate for the names with a new key. The first run also
creates the ACME account, whose key is kept in --out-dir.
If the ACME server requires External Account Binding (EAB), give the
key ID and the HMAC key it issued with --eab-kid and --eab-hmac-key.
They are needed only to create the account: later runs, renewals and
revocations use the account key.
Usage:
bxp-cli acme issue [flags]
Examples:
sudo bxp-cli acme issue --acme-id my-acme --name web.example.com --name www.example.com
# an ACME server that requires EAB
sudo bxp-cli acme issue --acme-id my-acme --name web.example.com \
--eab-kid $EAB_KID --eab-hmac-key $EAB_HMAC_KEY
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")
--eab-hmac-key string HMAC key for External Account Binding, base64url as the administrator got it
--eab-kid string key ID for External Account Binding, from the ACME server's administrator
--email string contact email address for the ACME account
--force replace the certificate if one exists
-h, --help help for issue
--name stringArray a host name or IP address for the certificate (repeat for more)
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