Skip to content

Renewal and GetCert

Renewal

A device renews with SCEP's renewal request (RenewalReq, RFC 8894), signed with its current certificate and key. No token is needed. The server advertises Renewal in GetCACaps.

  • A valid certificate of this CA that is not revoked renews.
  • The new certificate gets the old one's names and profile.
  • The device may keep its key or send a new one, as RFC 8894 allows (a new one is better, and bxp scep renew always makes one); many devices keep theirs.
  • Only certificates that came from SCEP renew this way (VIA scep in bxp list certificates). A certificate from the API renews with bxp renew, one from ACME with the ACME client.
  • An expired or revoked certificate needs a new token.
  • Renewals are logged as certificate renewed and counted with the verifier scep_renewal.
bxp scep renew --cert device1.example.com.crt --key device1.example.com.key

Like bxp renew, it does nothing while more than a third of the lifetime is left (--force renews now), makes a new RSA key of the same size, replaces both files in one step, and runs --exec after a renewal.

micromdm's scepclient renews when the certificate file already exists: run the same command again without -challenge.

GetCert

A device that lost its certificate file but kept its key can fetch the certificate again, by serial number, with SCEP's GetCert:

bxp scep getcert --serial 545833e6a9b1f0cc7bd575321d063ae492707849 \
    --key device1.example.com.key --out device1.example.com.crt
  • The CA hands a certificate only to the holder of its key: the request must be signed with that key. Certificates are not secret, but the CA's list of names should not be open to everyone.
  • The serial number is in bxp list certificates on the CA, and in the CA's log.
  • Logged as SCEP certificate sent again.