Skip to content

bxp-cli scep renew

Renew the certificate over SCEP: no challenge.

Usage

Renew the certificate in --out-dir, signed with the current one.

It does nothing while more than a third of the certificate's lifetime
is left, so run it daily from a timer: it renews at the right moment
by itself.

Usage:
  bxp-cli scep renew [flags]

Flags:
      --exec string   a command to run after a renewal
      --force         renew now, even if more than a third of the lifetime is left
  -h, --help          help for renew

Global Flags:
      --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")
      --out-dir string     directory for the device key, the certificate and the CA's certificates (default: ~/.bxp-cli/scep)
      --root string        path of the CA's root certificate
                           (or BXP_CLI_ROOT; default: the one saved by "bxp-cli trust")
      --scep-id string     ID of the SCEP endpoint on the BastionXP server
      --url string         full address of a SCEP endpoint
                           (default: the BastionXP server's, from --ca-url, --authority and --scep-id)
  -v, --verbose            show each step on stderr (or BXP_CLI_LOG_LEVEL=debug)

Parent command: bxp-cli scep