Skip to content

SCEP

SCEP (RFC 8894) is the protocol that phones, laptops under device management (MDM), routers and printers use to get a certificate. Use it for devices that speak nothing else; on a normal machine bxp tls is simpler.

The flow

SCEP enrollment: GetCACaps and GetCACert, the device makes a key and CSR, sends PKIOperation, the server checks it and replies with CertRep SCEP enrollment: GetCACaps and GetCACert, the device makes a key and CSR, sends PKIOperation, the server checks it and replies with CertRep

What BastionXP CA supports

Feature Support
Enrollment (PKCSReq) With a one-time token as the challenge, or a shared challenge for MDM.
Renewal (RenewalReq) Signed with the current certificate; new key or same key. Advertised as Renewal in GetCACaps.
GetCert Fetch an issued certificate again, by the holder of its key.
Algorithms SHA-256, AES-256 (SHA-256, AES in GetCACaps); POSTPKIOperation; SCEPStandard.
GetCRL No: the CRL is at /crl.
Polling (pending requests) No: every answer is immediate.

The address

https://ca.example.com:8443/scep

Things to know

  • Devices need RSA keys. SCEP sends the certificate back encrypted, and that only works with RSA. Devices use RSA for SCEP anyway.
  • The device must trust the CA. How it gets root.crt depends on the device; with MDM it is part of the same profile as the SCEP settings.
  • Certificates are valid for the profile's default time (30 days for tls-device, the default for devices): SCEP has no way to ask for another. Devices renew when their device management says so, not every few hours, so tls-device lives longer than the 24-hour tls-client.
  • SCEP is safe over plain HTTP as far as its messages go (they are signed and encrypted), but BastionXP CA serves it on its HTTPS address.

Next

  1. Server setup
  2. Enroll with a token or with a shared challenge (MDM)
  3. Renewal and GetCert
  4. Clients