Use it for every publicly trusted web certificate. Certificate lifetimes are shrinking (Let's Encrypt to 64 days in 2027 and 45 days in 2028), so manual renewal is no longer realistic.
ACME Certificate Automation
ACME (RFC 8555) is the protocol a client uses to prove control of a domain to a certificate authority and obtain and renew TLS certificates automatically. Let's Encrypt is the best-known ACME CA; certbot, acme.sh and Caddy are common clients.
1. When does the served certificate expire?
2. Does a dry-run renewal succeed?
3. Does the web server reload after renewal (deploy hook)?
4. Can the CA reach the challenge (port 80, DNS TXT, CAA)?
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
dig +short CAA example.comVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Read-only Verification Verify boundary
# What the server actually presents
echo | openssl s_client -connect www.example.com:443 -servername www.example.com 2>/dev/null \
| openssl x509 -noout -subject -issuer -dates -ext subjectAltName
# Client view (certbot)
certbot certificates
certbot renew --dry-run
systemctl list-timers | grep -i certbot
# DNS prerequisites
dig +short CAA example.com
dig +short TXT _acme-challenge.example.com # during a DNS-01 validation
# Is the HTTP-01 path reachable from outside? (expect 404 for a random token, not a timeout or redirect loop)
curl -sS -o /dev/null -w "%{http_code}\n" http://www.example.com/.well-known/acme-challenge/test
If certbot certificates shows a renewed certificate but openssl s_client still shows the old expiry, the web server has not been reloaded — add a deploy hook.
Step 2 Common mistakes Narrow the fault
- Relying on CA expiry emails (no longer sent by Let's Encrypt).
- No deploy hook, so renewed certificates are never loaded.
- Hard-coding 90-day assumptions (renew at day 60) in scripts — lifetimes are shrinking.
- Storing broad DNS API keys on web servers for DNS-01.
- Testing against production and hitting rate limits.
Step 3 Troubleshooting Narrow the fault
HTTP-01 fails with a timeout or connection error. Port 80 is closed in a firewall or security group, IPv6 (AAAA) points somewhere else, or a CDN/proxy answers the challenge path instead of the server.
unauthorized / wrong content. The challenge file is not served from the web root the client wrote to, or a rewrite rule catches /.well-known/acme-challenge/.
CAA error. A CAA record exists and does not allow the CA.
Rate limited. Repeated failed orders or many new certificates for the same names; fix the problem against staging first.
Certificate renewed but site shows the old one. No reload after renewal, or the server points at a copied file instead of /etc/letsencrypt/live/....
certbot certificates— managed certificates, domains, expiry.certbot renew --dry-run— renewal works against the staging CA.systemctl list-timers | grep -i certbot— renewal timer exists.echo | openssl s_client -connect <host>:443 -servername <host> 2>/dev/null | openssl x509 -noout -dates -issuer— what is actually served.dig +short CAA <domain>— which CAs may issue.
ReferenceWhat it is2 sections · depth on demand
Direct Answer
ACME is the protocol that automates publicly trusted TLS certificates. An ACME client creates an account with the CA, orders a certificate for one or more names, proves control of each name with a challenge (a file over HTTP on port 80, a DNS TXT record, or a special TLS certificate on port 443), and then downloads the certificate. The same process renews it before expiry. With certificate lifetimes shrinking — Let's Encrypt moves from 90 to 64 days in February 2027 and to 45 days in February 2028 — renewal must be fully automated and monitored.
Scope and canonical references
- Configuring TLS on the web server: TLS under Web Services, TLS Certificates for IIS.
- PKI, chains and trust: TLS in Security.
- A server with ACME built in: Caddy.
- Edge certificates managed by a CDN: Content Delivery Networks.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Protocol flow (RFC 8555)
1. Account — the client registers a key pair with the CA (and accepts its terms).
2. Order — request a certificate for a set of identifiers (DNS names).
3. Authorizations — one per name, each offering challenge types.
4. Challenge — the client publishes the proof and tells the CA to validate.
5. Finalize — the client sends a CSR; the CA issues the certificate.
6. Download — certificate and chain; the client installs it and reloads the server.
Challenge types (Let's Encrypt)
| HTTP-01 | DNS-01 | TLS-ALPN-01 | |
|---|---|---|---|
| Proof | File at http://<name>/.well-known/acme-challenge/<token> | TXT record at _acme-challenge.<name> | Special certificate via ALPN on port 443 |
| Port | 80 only | None (DNS) | 443 |
| Wildcards | No | Yes | No |
| Server must be public | Yes | No | Yes |
| Main risk | Port 80 blocked, CDN/proxy in the way | DNS API credentials on the server | Limited client support |
HTTP-01 follows up to 10 redirects to HTTP or HTTPS on ports 80/443 and does not validate the certificate when redirected to HTTPS, so a site that redirects everything to HTTPS still validates. With several web servers behind a load balancer, the challenge file must be available on all of them (or use DNS-01). For DNS-01 a CNAME from _acme-challenge to a dedicated validation zone limits what the stored API key can change.
Lifetimes and renewal
- Let's Encrypt issues 90-day certificates by default today, plus optional 6-day short-lived certificates.
- Planned changes: 64 days from 10 February 2027 and 45 days from 16 February 2028; the reuse period for a completed domain validation shrinks to 10 days and then 7 hours. Industry rules cap all public certificates at 47 days from 15 March 2029.
- ACME Renewal Information (ARI) lets the CA tell clients when to renew; use a client that supports it. Renewals are exempt from Let's Encrypt's new-certificate rate limits.
- Let's Encrypt stopped sending expiry emails in June 2025 and removed OCSP URLs from certificates in May 2025 — monitor expiry with your own checks.
CAA records
A CAA DNS record (RFC 8659) lists which CAs may issue for a domain, e.g. example.com. CAA 0 issue "letsencrypt.org". If CAA exists and does not include your CA, issuance fails.
certbot in practice
| Command | Purpose |
|---|---|
certbot certonly --webroot -w /var/www/example -d example.com -d www.example.com | Obtain using HTTP-01 via an existing web root |
certbot --nginx -d example.com | Obtain and configure nginx |
certbot certificates | List managed certificates and expiry |
certbot renew --dry-run | Test renewal against the staging CA |
certbot renew --deploy-hook "systemctl reload nginx" | Reload after a successful renewal |
Renewal runs from a systemd timer or cron job installed with the package. Certificates live under /etc/letsencrypt/live/<name>/ (fullchain.pem, privkey.pem). Use the staging environment while testing to avoid production rate limits.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.