Skip to content

bxp-cli scep

Get, renew or fetch a TLS certificate over SCEP.

Subcommands

Command Description
bxp-cli scep enroll Get a TLS certificate over SCEP
bxp-cli scep renew Renew the certificate over SCEP: no challenge
bxp-cli scep getcert Fetch a certificate the CA issued before

Usage

The SCEP protocol, the one that phones, managed laptops, routers and
printers use. These commands stand in for such a device.

  enroll   get a certificate, with the challenge password
  renew    get a new one, signed with the current certificate
  getcert  fetch a certificate the CA issued before

The device key, the certificate and the CA's certificates are kept in
--out-dir. SCEP needs RSA keys.

Usage:
  bxp-cli scep [command]

Examples:
  bxp-cli scep enroll --scep-id my-scep --name printer1.example.com --challenge $CHALLENGE

Available Commands:
  enroll      Get a TLS certificate over SCEP
  renew       Renew the certificate over SCEP: no challenge
  getcert     Fetch a certificate the CA issued before

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")
  -h, --help               help for scep
      --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)

Global Flags:
  -v, --verbose   show each step on stderr (or BXP_CLI_LOG_LEVEL=debug)

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