How it works¶
Before diving into how BastionXP Device Attestation (DA) works, it’s essential to understand the core security gaps it addresses and why a hardware-rooted identity is necessary for the modern enterprise.
The Pain Point¶
“Is This Actually A Company Approved Device?”
For most IT teams, the biggest headache is unauthorized access. You might have an MDM (Mobile Device Management) solution like Jamf or Intune, but how do you "guarantee" that the device requesting a certificate is the specific MacBook, iPad or iPhone you own?
The current risk is identity spoofing. If an attacker or a disgruntled employee manages to extract a configuration profile or a shared secret, they can trick your network into thinking their personal, unmanaged computer is a company-issued device.
The Legacy SCEP Approach¶
For more than 20 years, the industry standard for getting certificates onto devices has been SCEP. Simple Certificate Enrollment Protocol (SCEP) [RFC 8894] was originally designed for getting X.509 certificates to networking gear. The way it works is pretty simple: As long as the device knows the secret password and is configured to trust the organization’s Certificate Authority (CA), it can request a certificate for itself from the CA.
How SCEP works:¶
- The MDM server sends a "Configuration Profile" to the device.
- This profile contains a shared secret (password) and the URL of a Certificate Authority (CA).
- The device presents that password to the CA to prove it is allowed to have a certificate.
The Problem with the Legacy Approach¶
SCEP dates from the late 1990s, long before hardware-backed device identity existed (it became an RFC only in 2020). It has three fatal flaws in a modern security environment:
- Passwords can be stolen: SCEP relies on a shared secret. If an attacker intercepts the configuration profile, they have the password. They can then use that password to request their own certificate from any machine, successfully impersonating a managed device.
- No Hardware Binding: SCEP doesn't care where the private key lives. It doesn't verify if the key is stored in a secure hardware chip (like Apple’s Secure Enclave or a TPM) or if it's sitting as a file on a desktop that can be easily exported.
- Manual "Trust Me" Validation: You are essentially trusting the device because it "knows a secret," not because it "is a specific piece of hardware."
The Solution: ACME Device Attestation¶
ACME (Automatic Certificate Management Environment) [RFC 8555] is the protocol that powered the Let’s Encrypt revolution for securing communications with web servers. It has since been adopted to automate certificate management for workloads in DevOps environments using a Private ACME CA server.
Standard ACME was designed for web servers and workloads to prove they control a domain name (like example.com) using challenge types such as http-01, dns-01 and tls-alpn-01.
To make it work for devices, a new IETF specification named ACME Device Attestation Extension was created. It has been approved by the IESG for publication as a Proposed Standard; check the datatracker for its current status and RFC number.
This extension introduces a new challenge type, device-attest-01, to the ACME protocol. Instead of proving you control a domain, the device must prove that it is a genuine piece of hardware with a specific identity. It is the bridge that lets the ACME protocol carry evidence produced by hardware security chips (like Apple's Secure Enclave) back to the CA.
In short:
ACME Device Attestation is a way for a device to prove its identity using hardware-backed evidence rather than a password. It allows a device to say to a CA: "I am Serial Number XYZ, and here is a cryptographic proof signed by the manufacturer (say, Apple) to prove it."
Why is it Needed? (The Zero Trust Shift)¶
Zero Trust is built on the idea of "Never Trust, Always Verify."
- Hardware-bound Identity: It ensures the private key is generated inside a secure chip and cannot be exported. Even if a hacker gains admin access to the laptop, they cannot copy the key and take the identity to another machine.
- Manufacturer-Verified: It leverages the trust you already have in the hardware manufacturer (Apple, Google, TPM vendors, etc.) to verify the device's physical attributes.
- Elimination of Shared Secrets: There are no more SCEP passwords to manage, rotate, or leak.
How ACME Device Attestation Works:¶
When a device (like an iPhone or iPad running iOS/iPadOS 16+, or a Mac running macOS 14+) enrolls via ACME Device Attestation, the flow looks like this:
- The Order and the Challenge: The device (configured by the MDM with the ACME server URL) asks the ACME CA for a certificate for its identifier, its serial number. The CA replies with a
device-attest-01challenge that contains a random token. - The Key and the Attestation: The device generates a key pair in its Secure Enclave, so the private key is non-exportable. It then asks the manufacturer's attestation service (for Apple devices, Apple's servers) to attest to that key. The result is a short X.509 certificate chain, the "attestation". Its leaf certificate carries the device's permanent hardware identifiers (like Serial Number and UDID), the attested public key, and a freshness code derived from the CA's token (for Apple, the SHA-256 hash of the token).
- The Signature: The manufacturer signs this chain, and it ends at the manufacturer's root CA (for Apple, the Apple Enterprise Attestation Root CA). Because it is an ordinary certificate chain to a public root, the CA can verify it without any secret shared with the device.
- Verification: Instead of relying on a password, your ACME CA performs a "Chain of Trust" validation. It verifies the attestation chain against the manufacturer's Root CA certificate, which confirms that the hardware is authentic. It also checks that the freshness code matches the token it just issued (so an old attestation cannot be replayed), and that the attested public key is the same key that is in the device's certificate request (CSR). For an extra layer of security, the CA (often integrated with your MDM) cross-references the device's unique hardware identifiers (like Serial Number or UDID) against your organization's inventory list. This ensures that the certificate is only issued to a device your company actually owns.
- Issuance: Once verified, the CA issues the certificate. Its private key never leaves the device.
Apple documents the platform requirements and the attestation contents in Managed device attestation.
Migrate from an existing SCEP CA¶
BastionXP also supports SCEP. It is there for organizations that run a SCEP-based PKI/CA today, such as Microsoft NDES, Entrust, MicroMDM, EZCA or the SCEP service of Jamf Pro, and that want to move to ACME Device Attestation gradually, not in one step.
Because BastionXP speaks SCEP, your device management system and your devices keep working the way they work now. You move in stages:
- Set up BastionXP next to your current CA. Create an authority with a SCEP verifier. Prefer the
dynamicchallenge mode, where each device gets its own one-time password, to one sharedstaticpassword. If your device management system acts as the SCEP registration authority, turn on External registration authority. - Make the devices trust the BastionXP root CA. Send its certificate with your device management system.
- Point the SCEP profile at BastionXP. Change the SCEP URL in the profile to the SCEP enrollment URL that the portal shows. Devices that enroll or renew from then on get their certificate from BastionXP. Certificates from your old CA go on working until they end.
- Make your network trust both CAs for a while. Your RADIUS server and VPN gateways must accept the old CA and the BastionXP CA during the move. See Passwordless Wi-Fi and VPN with EAP-TLS.
- Move device groups to ACME Device Attestation. Put the devices in the inventory, add an ACME verifier with the
device-attest-01challenge, and send the devices an ACME profile. Do this group by group, for the devices that support it. - Retire the old CA. When no device depends on it any more, remove its root from the trust of your network and switch it off.
Use this table to decide, device by device:
| SCEP | ACME Device Attestation | |
|---|---|---|
| Proves the device is genuine hardware | No. | Yes, with evidence signed by the manufacturer. |
| Checks that your company owns the device | No. | Yes. The device must be in the inventory. |
| The private key | A normal key, which can be copied. | Generated in the Secure Enclave or TPM, and cannot be exported. |
| Secret to protect | The challenge password. | None. |
| Best for | The transition, and devices or network equipment that cannot use ACME yet. | Every device that supports it. This is where you want to end up. |
The Result: A "Secure" Perimeter¶
The era of the "shared secret" is over. The era of hardware-backed trust has arrived.
By moving from SCEP to ACME Device Attestation, organizations finally achieve the "Device-as-a-Password" dream.
The user experience is seamless—no logins, no manual certificate installs. From a security perspective, you gain the peace of mind that only genuine, enrolled hardware that you manage can obtain a certificate and access your network. A stolen configuration profile is now useless to an attacker because they don't have the specific, physical Secure Enclave/TPM chip associated with that device's identity.
Where to go next¶
- Choose your path to set up the part that you need first.
- Certificate lifecycle to see how certificates, and CAs, are renewed and revoked.
- Security model to see how BastionXP protects its keys and what it records.
- Passwordless Wi-Fi and VPN with EAP-TLS to use the certificates for network access.