bxp scep getcert¶
Fetch a certificate the CA issued before.
Usage¶
Fetch a certificate the CA issued, by its serial number: for a device
that lost its certificate file but kept its key. The CA hands a
certificate only to the holder of its key, so give the key with --key.
Usage:
bxp scep getcert [flags]
Examples:
bxp scep getcert --serial 2674c91e0dadae73aaba34dd46d5128c53a49287 \
--key device1.example.com.key --out device1.example.com.crt
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")
--force replace the file if it exists
-h, --help help for getcert
--key string the certificate's private key (RSA)
--out string file to write the certificate to (default: <serial>.crt)
--root string path of the CA's root certificate, root.crt
(or BXP_ROOT; default: the one saved by "bxp trust")
--serial string the certificate's serial number, in hex (as "bxp list certificates" shows it)
Global Flags:
--config string path to the configuration file (default "bastionxp-ca.yaml")
Parent command: bxp scep