Certificate Enrollment Protocols: ACME, SCEP (Static vs Dynamic), EST and Device Attestation

9 Min Read • Published on Nov 25, 2026
Tutorial contents
In this page

Enrollment is how a machine or person gets a certificate. The earlier you automate it, the shorter your lifetimes can be, and the fewer outages you have. All the protocols answer the same two questions:

  1. Proof of possession: does the requester hold the private key? (The CSR signature answers that.)
  2. Proof of identity: is the requester allowed to have this name? (This is where protocols differ.)
ProtocolTypical clientsIdentity proofRFC
ACMEServers, workloads, load balancers, devicesControl of a DNS name or IP; or hardware attestation8555
SCEPMDMs, phones, routers, printers, older devicesA shared challenge password (static or dynamic)8894
ESTModern IoT and network gearTLS client auth, HTTP basic or an existing certificate7030
CMPTelecom, industrial PKISeveral4210
OIDC login → CAPeopleSSO and MFA-
Manual CSROne-offsA human approves-

Why two questions? Imagine a CA that checked only proof of possession: anyone could generate a key and ask for payroll.example.com, and the CA would happily sign it because the signature on the request is valid. The CA must also decide whether this requester is entitled to that name. Every protocol below is really a different answer to that second question.

ACME

ACME (Automatic Certificate Management Environment) is how Let’s Encrypt works and why HTTPS became ubiquitous. Before ACME, getting a certificate meant emailing a CSR, waiting for an approval and pasting files onto a server, and then doing it all again a year later (and forgetting). ACME turns that into a conversation between two programs: the software on the server (a client such as certbot, acme.sh, Caddy, cert-manager, or bxp-cli acme) and the CA, with no human involved after setup.

The flow:

  1. Account: the client makes an account key (its identity with the CA, separate from any certificate key) and registers.
  2. Order: the client asks for a certificate for www.example.com.
  3. Challenge: the CA says “prove you control that name” and hands over a random token.
  4. Validation: the client completes the challenge (for example by serving the token from the web server), and the CA checks it from the outside.
  5. Finalize: the client generates a fresh key and a CSR, sends it, and downloads the certificate.
  6. Renew: the same again, automatically, well before expiry (typically when a third of the lifetime is left).

The core idea is that control of the name is the proof of identity. If you can make www.example.com serve a secret the CA just invented, you control it.

ChallengeProofGood forLimits
http-01A file at http://name/.well-known/acme-challenge/<token>Normal web serversPort 80 must be reachable; no wildcards
dns-01A TXT record at _acme-challenge.nameWildcards, servers behind firewallsNeeds DNS API credentials
tls-alpn-01A special self-signed certificate on port 443When only 443 is openNeeds a TLS-aware client
device-attest-01Hardware attestation (next section)Devices, not domainsNeeds supported hardware

Pick a challenge by what you can expose. http-01 is the easiest and the default for ordinary web servers. dns-01 is the only choice for wildcard names (*.example.com) and works for servers that are not reachable from the internet, but your ACME client needs permission to edit DNS, so keep that credential narrowly scoped.

The CA, not the client, decides the names and lifetime. Every ACME request is signed with the account key and wrapped in a JSON Web Signature (JWS), so the CA knows which account is asking and that nobody modified the request. That is why JWT/JWK knowledge helps here.

External Account Binding (EAB)

A public CA such as Let’s Encrypt lets anyone register an account, because anyone can prove control of a domain. A private CA often must restrict who may even start an order, otherwise anyone who can reach the CA’s network could ask it for certificates. EAB ties a new ACME account to an identity the CA already knows. An administrator creates a credential in the CA: a key id and a secret HMAC key. The client’s registration request includes an HMAC over its account key, made with that secret. The CA checks it and knows “this account belongs to the team that was given credential X”. The credential is single-purpose: it only creates the account, and cannot itself obtain certificates. See ACME EAB.

For the full picture of running an ACME server for internal PKI, see How ACME works.

SCEP

SCEP (Simple Certificate Enrollment Protocol) is from 1999 and is still everywhere because MDMs (Jamf, Intune, Workspace ONE), iOS, macOS, Windows, Cisco and Fortinet gear all speak it.

SCEP predates modern TLS practice, so it protects its own messages instead of relying on the connection. How it works, in short:

  1. The device downloads the CA certificate (GetCACert), so it can encrypt to the CA and check the CA’s answers.
  2. The device builds a PKCS#10 CSR and puts a challenge password in it. It wraps the CSR in a PKCS#7/CMS envelope encrypted to the CA (or RA), and signs the envelope with a temporary self-signed certificate (it does not have a real one yet).
  3. The server decrypts it, checks the challenge password, signs the certificate, and returns it in a PKCS#7 envelope.

The challenge password is how the CA answers “is this requester allowed?”: only a device that was handed the right secret in advance gets a certificate. All of that is why PKCS#7 and PKCS#10 matter. The details are fiddly, so in practice you let the MDM and the CA handle them and focus on the policy choices below.

Static vs dynamic SCEP

The challenge password is the entire security of SCEP, so how it is created matters most. Compare a hotel that gives every guest the same room key (static) with one that cuts a new card for each guest at check-in (dynamic).

Static challengeDynamic challenge
WhatOne shared secret, the same for every deviceA different, one-time secret for each enrollment
CreatedOnce, by an adminPer device, by an admin, by the MDM or by an API
If it leaksAnyone with it can get a certificate, until you change itOnly that one token, and only if unused or unexpired
AuditYou cannot tell who used itEach token is linked to a device or a request
UseLabs, small closed networksProduction
Treat a static SCEP secret as a password for creating identities
Anyone with it can request a certificate for any name the profile allows. Prefer dynamic challenges, restrict what a SCEP certificate may contain, and prefer ACME with device attestation where the hardware supports it.

BastionXP supports both static and dynamic challenge modes. For how a SCEP gateway fits MDM-managed devices, see How to Use a SCEP Gateway to Distribute Certificates to Managed Devices. SCEP renewal signs the new request with the current certificate, so no password is needed.

SCEP’s other weaknesses: old crypto (RSA, SHA-1 era), no strong identity proof (the password says “someone with the secret”, not “this specific device”), and the secret travels in the request. Nothing stops a leaked password or a copied private key from being used on another machine. These are why ACME with attestation is replacing it for managed devices.

EST

EST (Enrollment over Secure Transport, RFC 7030) is “SCEP done with modern TLS”. Instead of inventing its own encrypted envelope, it uses plain HTTPS endpoints under /.well-known/est/, and relies on TLS to protect the exchange. The device authenticates with TLS (a bootstrap certificate, such as one installed at the factory, or HTTP credentials), sends a CSR, and gets a certificate. Renewal uses the existing certificate to authenticate. It is simpler to implement and safer than SCEP, and common in IoT and telecom, but fewer phones and MDMs speak it.

ACME Device Attestation

A normal ACME challenge proves control of a name. A phone or laptop does not have a DNS name to prove; what it has is a serial number and a hardware chip (the Secure Enclave, a TPM) that generates keys which can never be copied out. ACME Device Attestation (device-attest-01, an IETF draft) lets the device prove, with evidence signed by the hardware maker, that:

  • the private key was generated inside secure hardware (Apple Secure Enclave, a TPM, Android Keystore) and cannot be exported; and
  • the device is a genuine device with this serial number (and, depending on platform, other properties such as OS state).

Simplified flow:

  1. The MDM tells the device which ACME server and which identifier (the serial number) to use.
  2. The device generates a key inside its secure chip.
  3. The chip produces an attestation statement: signed by a key that chains up to the manufacturer’s CA, and tied to this public key.
  4. The device sends the statement in the ACME challenge.
  5. The CA verifies the manufacturer chain, checks the serial number against the expected inventory, and checks the key in the CSR is the one attested.
  6. The CA issues a certificate whose key can never leave that device.

An attestation statement works like a tamper-evident seal and a receipt from the factory: the chip says, in a message signed by a key the manufacturer vouches for, “this public key was generated inside me, I am a genuine chip, and my device serial is X”. The CA cannot be fooled by software pretending to be hardware, because it cannot forge the manufacturer’s signature.

Why it is a big deal:

  • No shared secret to steal (unlike SCEP). There is no password in a profile that can leak.
  • A copied or cloned certificate does not work: the key is non-exportable, so even malware with full control of the laptop can use the key only while it is running there, and cannot take it elsewhere.
  • Renewal can re-check the device, so a lost or compromised device simply stops getting certificates.
  • The identity is a real device, not just “something that knew a password”. That makes Wi-Fi and VPN access decisions stronger: only company-owned, genuine hardware gets in.

Nothing in attestation is new magic. It reuses ideas from earlier pages: certificate chains, signatures and openssl-style parsing. An attestation statement is X.509 certificates (you can inspect them with openssl x509 -text), and the CA verifies them against the manufacturer’s root. See ACME Device Attestation: The Modern Zero Trust Alternative to SCEP and How to Secure Corporate Wi-Fi & VPN Access with ACME Device Attestation.

Choosing a protocol

SituationUse
Linux server, web server, KubernetesACME (http-01 or dns-01)
Wildcard certificatesACME dns-01
Managed Apple device, modern Windows laptopACME device attestation via MDM
Managed device, MDM only knows SCEPDynamic SCEP
Router, printer, legacy gearSCEP (dynamic if possible) or EST
People who need SSH or client certificatesOIDC/SSO login to the CA
A human with a one-off needCSR + approval

About BastionXP

BastionXP is a cloud-native private PKI CA and device identity management platform that eliminates passwords and shared secrets by issuing hardware-attested certificates to mobile devices and laptops. Secure access to your Wi-Fi, VPN, and SaaS applications in your enterprise network. Replace legacy SCEP with automated ACME Device Attestation. No shared secrets. Zero credential theft. Learn more about BastionXP →

Start Your Free Trial Now

Try BastionXP for free with no commitments. No credit card required.