bxp scep renew¶
Renew a certificate over SCEP: no token.
Usage¶
Renew a certificate with SCEP's renewal request: the request is
signed with the current certificate and its key, so no token is needed.
The new certificate has the same names and profile as the old one.
It does nothing while more than a third of the certificate's lifetime
is left, so run it from a timer: daily for tls-device's 30 days, hourly
for certificates of a day or two. A new RSA key of the same size
is made, and the key and certificate files are replaced.
A certificate that has expired or was revoked cannot be renewed.
Usage:
bxp scep renew [flags]
Examples:
bxp scep renew --cert device1.example.com.crt --key device1.example.com.key
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")
--cert string the certificate to renew
--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
--key string its private key (RSA)
--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")
Parent command: bxp scep