Skip to content

bxp acme

Get and manage TLS certificates with ACME: no token, no login.

Subcommands

Command Description
bxp acme issue Get a TLS certificate
bxp acme renew Get a new certificate for the names of one that is due
bxp acme revoke Revoke a certificate
bxp acme rollover-key Replace the ACME account key
bxp acme deactivate Close the ACME account for good

Usage

Get TLS certificates with the ACME protocol, from this CA or from any
other ACME CA (--directory). Nobody has to hand out a token or log in:
the machine proves that the host names are its own.

  issue         get a certificate
  renew         get a new one for the names of a certificate, when it is due
  revoke        tell the CA a certificate must no longer be trusted
  rollover-key  replace the account key
  deactivate    close the account for good

The account is just a key, acme-account.key, made by the first "issue".
Keep it: renewals and revocations use it again.

Usage:
  bxp acme [flags]
  bxp acme [command]

Examples:
  sudo bxp acme issue --ca-url https://ca.example.com:8443 --root root.crt \
      --name web.example.com
  sudo bxp acme renew --cert web.example.com.crt --key web.example.com.key \
      --exec "systemctl reload nginx"

Available Commands:
  issue        Get a TLS certificate
  renew        Get a new certificate for the names of one that is due
  revoke       Revoke a certificate
  rollover-key Replace the ACME account key
  deactivate   Close the ACME account for good

Flags:
      --ca-url string      address of the CA server, e.g. https://ca.example.com:8443
                           (or BXP_CA_URL; default: the one saved by "bxp trust")
      --directory string   address of the ACME directory of another CA, e.g. https://acme-v02.api.letsencrypt.org/directory
                           (default: the one of the server given with --ca-url). The CA's certificate is
                           checked against --root, or against the system's roots
  -h, --help               help for acme
      --root string        path of the CA's root certificate, root.crt
                           (or BXP_ROOT; default: the one saved by "bxp trust")

Global Flags:
      --config string   path to the configuration file (default "bastionxp-ca.yaml")

Use "bxp acme [command] --help" for more information about a command.