ACME (Automatic Certificate Management Environment) is the standard protocol, defined in RFC 8555, that lets software obtain and renew a TLS certificate with no human involved. Popularized by Let’s Encrypt, it is now offered by most certificate authorities, including for paid certificates.
With eight renewals a year by 2029, it is the normal path for any public certificate. You still have to pick the right validation mode.
How ACME works
- The ACME client (Certbot, acme.sh, lego, Caddy, cert-manager, win-acme…) creates an account with the authority.
- It requests a certificate for one or more domain names.
- The authority answers with a challenge: prove control of each name.
- The client publishes the expected response, and the authority checks it.
- The client sends its signing request (CSR) and retrieves the certificate.
- It installs the certificate, reloads the service, and starts again before expiry.
Deployments differ almost entirely at step 3.
- 1. Account, then certificate order
- 2. Challenge: prove you control the name
- 3. Publishes the challenge response
- 4. Checks the response
- 5. Signing request (CSR)
- 6. Certificate
- Installs the certificate, reloads the service, starts again before expiry
The three challenges
| HTTP-01 | DNS-01 | TLS-ALPN-01 | |
|---|---|---|---|
| Proof | File served on port 80 | _acme-challenge TXT record |
Temporary certificate on port 443 |
| Wildcard certificates | No | Yes | No |
| Server not exposed to the Internet | No | Yes | No |
| Requirement | Port 80 open | Access to the DNS API | Compatible TLS termination |
HTTP-01: the simplest
The authority requests a file at http://your-domain/.well-known/acme-challenge/…. It is the default challenge, ideal for a single web server. Its limits: port 80 must be reachable from the Internet, and behind a load balancer the request has to reach the right server.
DNS-01: the most flexible
The client creates a TXT record in the DNS zone. It is the only challenge that can issue a wildcard certificate, and the only one usable for an internal server. In return, the client must be able to modify DNS: an over-privileged API key on a web server is a real risk. The usual answer is to delegate _acme-challenge with a CNAME to a dedicated zone with limited permissions.
TLS-ALPN-01: the most discreet
Validation happens entirely on port 443, during the TLS handshake. Useful when port 80 is closed, but few servers support it: you mostly meet it with Caddy or Traefik.
What changes with short lifetimes
Authority-driven renewal (ARI). RFC 9773 lets the authority tell the client when it recommends renewing, and request an early renewal in case of mass revocation. Check that your client supports it.
Validation at every renewal. Reuse of a domain validation will drop to 10 days in 2029. The challenge will be replayed almost every time: a fragile challenge becomes a recurring outage.
Rate limits. Authorities cap the number of certificates per domain and per period. A misconfigured client requesting a certificate in a loop can block a whole domain for several days.
The limits of ACME
ACME issues and renews. It does not know:
- which certificates exist elsewhere in your organization;
- whether the renewed certificate is the one the server actually presents;
- whether a client stopped working after a migration.
A failing ACME client is often silent: it writes to a log nobody reads. That is why independent expiry monitoring is still needed, even with a fully automated estate.
In practice
- An exposed web server, no wildcard: HTTP-01.
- A wildcard, an internal service or several servers behind a load balancer: DNS-01, with CNAME delegation.
- Port 80 closed and a compatible reverse proxy: TLS-ALPN-01.