Skip to content

bxp-cli scep getcert

Fetch a certificate the CA issued before.

Usage

Fetch a certificate by its serial number, with the device key in --out-dir.

Usage:
  bxp-cli scep getcert [flags]

Flags:
  -h, --help            help for getcert
      --serial string   the certificate's serial number, in hex

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