ACME

With an ACME certificate authority, Apple devices order their certificates themselves. The device creates the key in its Secure Enclave, proves with an Apple device attestation (device-attest-01) that it is a genuine device, and receives the certificate from the ACME server. The private key never leaves the device. Relution only hands the device the ACME payload.

Requirements: iOS/iPadOS 16 or later, macOS 14 or later, and an ACME server that supports device-attest-01, e.g. Smallstep step-ca →.


ACME server

ServerWho decides which device gets a certificate
Smallstep step-ca (recommended)step-ca asks Relution through a webhook before it signs. Relution only allows devices that have a certificate template of this authority assigned.
Other ACME serverThe ACME server alone. Any genuine Apple device that reaches it gets a certificate, also one managed by another MDM. Services that trust this CA have to check the serial number in the certificate.

For step-ca, create an ACME provisioner with the challenge device-attest-01, e.g. step ca provisioner add <name> --type ACME --challenge device-attest-01.


Certificate authority

Settings → Certificate Authorities → Add, type ACME:

  • ACME server: Smallstep step-ca or Other ACME server.
  • Directory URL: the directory of the provisioner, e.g. https://ca.example.com/acme/<name>/directory. ACME servers that require external account binding are not supported.
  • Devices reach the server through Relution: see Relution as proxy.
  • Webhook ID and Webhook signing secret (step-ca only): after saving, Relution shows the webhook address. Add it to the provisioner, e.g. step ca provisioner webhook add <name> relution --url <address>, and enter the ID and the secret step-ca prints. Without the secret Relution refuses every webhook request, so step-ca issues no certificates.

Check connection only reads the directory. It does not show whether the server supports device-attest-01; the first device does.

If relution.api.scope.enabled-scopes is set in the server configuration, add acmeWebhook, otherwise Relution refuses the webhook and no device gets a certificate.


Relution as proxy

If the ACME server must not be reachable from the internet, the devices can send their requests to Relution, which forwards them. Only Relution then has to reach the server. This works with step-ca only.

  1. Enable the proxy in the server configuration: relution.pki.acme.proxy.enabled: true (off by default).
  2. Route /acme/ to Relution in any reverse proxy in front of it, next to /api/.
  3. Give the step-ca provisioner a random name of at least 32 characters (letters, digits, - and _). The form suggests one.
  4. Switch on Devices reach the server through Relution.

Certificate template

Settings → Certificate Templates → Add, type ACME on device, with the ACME certificate authority:

  • Client identifier: what the device presents to the ACME server. Empty means the serial number of the device.
  • Subject name: step-ca only signs if the CN equals the client identifier, e.g. CN=${device.serialnumber}.
  • Automatic renewal: the device does not renew by itself. Relution installs the profile again once the certificate is within the renewal period, or once half of its lifetime has passed if it lives shorter.

The template is then used in an Apple policy, e.g. in a Wi-Fi or VPN configuration.


Limitations

  • Relution cannot revoke ACME certificates. Use a short validity on the ACME server, so that the certificate of a lost or removed device expires soon.
  • Only Apple devices are supported.

How helpful was this article?