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:
- Proof of possession: does the requester hold the private key? (The CSR signature answers that.)
- Proof of identity: is the requester allowed to have this name? (This is where protocols differ.)
| Protocol | Typical clients | Identity proof | RFC |
|---|---|---|---|
| ACME | Servers, workloads, load balancers, devices | Control of a DNS name or IP; or hardware attestation | 8555 |
| SCEP | MDMs, phones, routers, printers, older devices | A shared challenge password (static or dynamic) | 8894 |
| EST | Modern IoT and network gear | TLS client auth, HTTP basic or an existing certificate | 7030 |
| CMP | Telecom, industrial PKI | Several | 4210 |
| OIDC login → CA | People | SSO and MFA | - |
| Manual CSR | One-offs | A 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:
- Account: the client makes an account key (its identity with the CA, separate from any certificate key) and registers.
- Order: the client asks for a certificate for
www.example.com. - Challenge: the CA says “prove you control that name” and hands over a random token.
- Validation: the client completes the challenge (for example by serving the token from the web server), and the CA checks it from the outside.
- Finalize: the client generates a fresh key and a CSR, sends it, and downloads the certificate.
- 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.
| Challenge | Proof | Good for | Limits |
|---|---|---|---|
http-01 | A file at http://name/.well-known/acme-challenge/<token> | Normal web servers | Port 80 must be reachable; no wildcards |
dns-01 | A TXT record at _acme-challenge.name | Wildcards, servers behind firewalls | Needs DNS API credentials |
tls-alpn-01 | A special self-signed certificate on port 443 | When only 443 is open | Needs a TLS-aware client |
device-attest-01 | Hardware attestation (next section) | Devices, not domains | Needs 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:
- The device downloads the CA certificate (
GetCACert), so it can encrypt to the CA and check the CA’s answers. - 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).
- 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 challenge | Dynamic challenge | |
|---|---|---|
| What | One shared secret, the same for every device | A different, one-time secret for each enrollment |
| Created | Once, by an admin | Per device, by an admin, by the MDM or by an API |
| If it leaks | Anyone with it can get a certificate, until you change it | Only that one token, and only if unused or unexpired |
| Audit | You cannot tell who used it | Each token is linked to a device or a request |
| Use | Labs, small closed networks | Production |
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:
- The MDM tells the device which ACME server and which identifier (the serial number) to use.
- The device generates a key inside its secure chip.
- The chip produces an attestation statement: signed by a key that chains up to the manufacturer’s CA, and tied to this public key.
- The device sends the statement in the ACME challenge.
- 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.
- 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
| Situation | Use |
|---|---|
| Linux server, web server, Kubernetes | ACME (http-01 or dns-01) |
| Wildcard certificates | ACME dns-01 |
| Managed Apple device, modern Windows laptop | ACME device attestation via MDM |
| Managed device, MDM only knows SCEP | Dynamic SCEP |
| Router, printer, legacy gear | SCEP (dynamic if possible) or EST |
| People who need SSH or client certificates | OIDC/SSO login to the CA |
| A human with a one-off need | CSR + approval |
Related articles
- How ACME works and how to automate certificate management using an ACME Server
- ACME Device Attestation: The Modern Zero Trust Alternative to SCEP
- How to Use a SCEP Gateway to Distribute Certificates to Managed Devices
- Announcing ACME EAB Support in BastionXP: Strengthening Security for Your Private CA
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 →