Contents
- Introduction — The Certificate Nobody Renewed
- The ACME Challenge Types — HTTP-01 vs DNS-01 vs TLS-ALPN-01
- Industry Push for Certificate Automation
- Technology Vendors and Packages
- Example Configuration
- Real-World Benefits
- When NOT to Use Let's Encrypt
- Gotchas and Pitfalls
- ROI Analysis
- The Bottom Line
Introduction — The Certificate Nobody Renewed
December 14, 2023. LinkedIn's certificate expired. For several hours, one of the world's largest professional networks was unreachable. Not a DDoS, not a database crash — a certificate that someone forgot to renew.[1] This happens more often than any infrastructure team wants to admit.
Expired SSL/TLS certificates remain one of the most common — and most preventable — causes of application outages. When a certificate expires, clients immediately lose trust. Browsers throw full-page security warnings. Mobile apps hard-fail with SSL errors. API integrations between microservices silently drop connections. And the worst part? Certificate expiration is a hard deadline. No graceful degradation, no warning threshold that saves you — just a date on a calendar your team forgot to check.
For enterprise environments running dozens or hundreds of services, each on different renewal cycles, the probability that some certificate expires next month approaches certainty. The only question is whether you have automation in place to handle it before anyone notices.
This article covers the full landscape of SSL automation in 2026: how the ACME protocol works, which challenge types to use and when, the tooling landscape, the gotchas that will bite you, and — critically — when automated certificates from Let's Encrypt are not the right answer.
The ACME Challenge Types — HTTP-01 vs DNS-01 vs TLS-ALPN-01
The ACME (Automatic Certificate Management Environment) protocol, standardized as RFC 8555,[2] works by proving you control a domain before issuing a certificate for it. This proof is called a challenge, and the three standard challenge types have very different operational tradeoffs.
HTTP-01 Challenge
The ACME CA (e.g., Let's Encrypt) requests a specific file from http://<domain>/.well-known/acme-challenge/<token> on port 80. If the file contains the correct token, the CA considers you to have proven control over the domain — since you control the web server serving it.
Pros: Simple to set up; no DNS API configuration required; works with any web server that can serve a static file.
Cons: Requires public port 80 to be reachable from the internet; cannot issue wildcard certificates (*.example.com). If the hostname resolves to several web servers, each possible destination must serve the same challenge file, or the load balancer must route the challenge path to the ACME client that created it. A reverse proxy that strips or redirects .well-known/acme-challenge incorrectly will make validation fail.
Best for: Single-server public-facing sites where port 80 is already open.
DNS-01 Challenge
The CA asks you to create a specific TXT record at _acme-challenge.<domain>. Your ACME client automates this by calling your DNS provider's API (Cloudflare, Route53, Azure DNS, etc.) to create the record, then polls until the CA confirms propagation.
Pros: Works for internal servers without public HTTP access; supports wildcard certificates; doesn't require port 80; works behind load balancers, CDNs, and firewalls.
Cons: Requires a DNS provider with a programmatic API; DNS propagation can take minutes (some providers are slow to finalize); API tokens are high-value targets — they can modify all your DNS records.
Best for: Internal applications, wildcard certificates, environments behind firewalls or CDNs.
TLS-ALPN-01 Challenge
The CA connects to port 443 and performs a TLS handshake using ALPN (Application-Layer Protocol Negotiation). The server must respond with a specially crafted certificate containing the challenge token. This is the least well-known challenge type, and support is inconsistent across ACME clients.
Pros: Doesn't require port 80; no DNS API tokens needed; fast — no propagation delay. Works for non-standard ports when the CA supports it.
Cons: Requires port 443 to be publicly reachable; limited ACME client support (Certbot supports it, acme.sh requires configuration); no wildcard certificate support; can conflict with existing TLS termination.
Best for: Environments where port 80 is blocked but 443 is available; automated renewal without DNS API dependencies.
Comparison Table
| Challenge Type | Port Required | DNS Required | Wildcard Support | Propagation Delay | Best For |
|---|---|---|---|---|---|
| HTTP-01 | 80 (TCP) | No | No | None | Public-facing single servers |
| DNS-01 | None | Yes (API) | Yes | 30 s – 10 min | Internal apps, wildcards, firewalled networks |
| TLS-ALPN-01 | 443 (TCP) | No | No | None | Port-80-blocked, no DNS API |
Bottom line on challenge selection: If you manage DNS through a provider with a supported API and you need wildcard certs, use DNS-01. For simple public-facing services, HTTP-01 is simpler. Use TLS-ALPN-01 only when you cannot open port 80 and cannot use DNS automation.
Industry Push for Certificate Automation
- Let's Encrypt and the ACME protocol — As of mid-2025, Let's Encrypt had issued over 3 billion certificates and was actively serving more than 350 million domains.[3] The ACME protocol became IETF Standard RFC 8555 in 2019, cementing it as the industry standard for automated certificate issuance.
- Browser mandates — Chrome, Safari, and Firefox all mark plain HTTP sites as "Not Secure." Google's Chrome usage data shows that HTTPS usage on desktop has remained above 95% since 2020.
- Compliance requirements — PCI-DSS v4.0, HIPAA Security Rule, and FedRAMP all require valid TLS for in-scope applications. Automated renewal is the only reliable way to demonstrate continuous compliance during audits.
- Certificate Transparency (CT) — Since April 2018, all publicly trusted TLS certificates must be logged in CT logs (Chrome enforces this).[4] Automation handles CT log submission transparently — manual certificate generation often misses this step, resulting in certificates that browsers reject.
- Shortening certificate lifetimes — Apple, Google, and Mozilla have all pushed for progressively shorter maximum validity periods. As of September 2024, the maximum is 90 days for publicly trusted certificates under the Baseline Requirements (Ballot SC-063).[5] This is a direct parallel to Let's Encrypt's model — and it means manual renewal cycles are no longer viable.
Technology Vendors and Packages
Certificate Authorities
- Let's Encrypt — Free, automated CA using ACME. Issues 90-day certificates. No paid tier, no support SLA. The reference implementation for the entire ecosystem.
- ZeroSSL — Free tier (3 certificates) with a REST API and ACME support. Paid plans offer commercial support and longer validity periods (up to 1 year). Good middle ground between free Let's Encrypt and enterprise CAs.
- Cloudflare Origin CA — Free certificates for origins behind Cloudflare. Not publicly trusted on their own — they validate only between Cloudflare's edge and your origin. Combine with a Cloudflare-managed edge certificate for public trust.
- DigiCert, Sectigo, GlobalSign — Commercial CAs for EV (Extended Validation), OV (Organization Validation), and enterprise certificate management. Key differentiator: OV/EV certs display organization details in the certificate, which some regulated industries still require.
ACME Clients
- Certbot (Python) — The reference ACME client from the Electronic Frontier Foundation (EFF). Handles issuance, installation, and renewal with Apache and Nginx auto-configuration. Well-documented, widely deployed. Heavy dependency footprint (Python + virtualenv).
- acme.sh (Shell) — Pure-shell ACME client with 200+ DNS API integrations. No runtime dependencies beyond
curlandopenssl. Ideal for embedded systems, containers, and environments where Python isn't available. Installs its own cron job for renewal. - Smallstep (step-ca) (Go) — An internal CA server that issues certificates using ACME. You run your own CA, and clients use ACME to request certificates from it. Particularly valuable for internal-only applications using private DNS names (
.internal,.corp) that no public CA will issue for. Integrates with your existing internal PKI.
Example Configuration
The most common production pattern in 2026 is acme.sh with DNS-01 validation — it handles wildcard certificates, doesn't require public ports, and the cron-based renewal model has proven reliable across thousands of deployments. Here's a realistic setup for an internal application server:
# Install acme.sh (no root required — installs to ~/.acme.sh)
curl https://get.acme.sh | sh
# Issue a wildcard certificate using Cloudflare's DNS API
export CF_Token="your-api-token"
export CF_Email="[email protected]"
~/.acme.sh/acme.sh --issue --dns dns_cf -d example.com -d '*.example.com'
# Install the certificate to the application path and reload the service
~/.acme.sh/acme.sh --install-cert \
-d example.com \
-d '*.example.com' \
--key-file /etc/myapp/ssl/app.key \
--fullchain-file /etc/myapp/ssl/app.crt \
--reloadcmd "systemctl reload myapp-service"
# Test that renewal will work before relying on it
~/.acme.sh/acme.sh --renew -d example.com --dry-run
acme.sh automatically installs a daily cron job. Certificates whose remaining validity falls below 60 days are renewed. The --dry-run flag tests the entire renewal flow against Let's Encrypt's staging environment — no rate limits apply, and no live certificate is modified.
app.internal.corp — no public CA will issue certificates for those domains.
Real-World Benefits
- Lower expiration risk — automated issuance and renewal remove calendar-driven work, while monitoring and deployment validation catch failures in the automation path.
- Compliance continuity — continuous valid TLS satisfies PCI-DSS, HIPAA, and SOC 2 audit requirements. More importantly, automated renewal generates an audit trail — every renewal is logged by the ACME client, the CA, and the CT logs.
- Short-lived certificates reduce blast radius — 90-day validity means a compromised private key is only useful for at most 90 days (or less, if you rotate early). Pre-automation, certificates with 2–3 year validity meant a stolen key was usable for years before the cert would naturally expire.
- Scales linearly — the same automation pattern works for 5 certificates or 500. The marginal cost per additional certificate is effectively zero.
When NOT to Use Let's Encrypt
Let's Encrypt is an extraordinary achievement — free, automated, widely trusted. But it is not the right tool for every job. Here are the scenarios where you should look elsewhere.
You Need OV/EV Certificates (Banking, E-Commerce, Regulated Industries)
Let's Encrypt issues Domain Validation (DV) certificates only. DV proves you control the domain — it does not verify your organization's legal identity. Some regulated industries, insurance partners, and enterprise procurement processes still require Organization Validation (OV) or Extended Validation (EV) certificates that include the organization's name. If your compliance framework or a partner agreement explicitly requires OV/EV, Let's Encrypt will not satisfy it. Use DigiCert, Sectigo, or GlobalSign instead.
You Need an Internal / Private CA
For internal-only applications — an internal wiki, a CI/CD system, a monitoring dashboard accessed via private DNS (jenkins.internal.corp, grafana.internal) — you cannot use a public CA. Let's Encrypt will not issue certificates for non-public domains. You have two options: run your own internal CA with Smallstep (step-ca) or OpenVPN's EasyRSA, and distribute your root certificate to internal machines; or run a private ACME server with Smallstep, which lets internal services use the same ACME automation patterns they'd use with Let's Encrypt.
Air-gapped environments, disconnected networks, and classified systems often fall into this category. A public CA can still validate a publicly owned domain through DNS-01 even when the service itself is unreachable, and a certificate can be transferred into a disconnected network. That may be inappropriate or operationally awkward, however, and public CAs cannot issue for private names. An internal public key infrastructure (PKI) gives you your own root certificate, your own issuing process, and responsibility for distributing that root to every machine that must trust the certificates it signs.
You Need Validity Longer Than 90 Days
As of Ballot SC-063, 90 days is the maximum for publicly trusted certificates anyway.[5] So this point is moot for public-facing certs — everyone is on the same 90-day clock. However, if you're running an internal CA (see above), you can set your own validity periods. Some hardware appliances, IoT devices, and embedded systems have such constrained update cycles that 90-day rotation is impractical. In those cases, your internal CA can issue certificates with 1-year or longer validity. Just be aware you're trading security for operational convenience.
You Need Custom Root Distribution
Let's Encrypt's root certificates (ISRG Root X1, now cross-signed by IdenTrust) are built into all modern operating systems, browsers, and mobile devices. For public-facing services, this is a feature — no trust store configuration needed. But if you need to deploy certificates to devices, appliances, or third-party systems that require your own root (e.g., a hardware security module, an IoT fleet, or a vendor platform that pins trust to a specific root), you need to run your own CA. Smallstep, HashiCorp Vault PKI, or EJBCA are the tools for this.
Gotchas and Pitfalls
Automation is not magic. These are the edge cases that cause real outages in production — even with ACME fully deployed.
Rate Limits on Let's Encrypt
Let's Encrypt enforces several rate limits:[7]
- 50 certificates per registered domain per week. This sounds generous until you realize that a single renewal attempt for a wildcard cert counts as one certificate — and if your automation retries too aggressively (e.g., hitting a DNS propagation delay and polling every minute), you can burn through this limit quickly.
- 5 duplicate certificates per domain per week. If you already have a valid certificate for
example.comand your automation re-issues before the old one expires, you may hit this limit. - 300 failed validation attempts per account per hour. A misconfigured DNS challenge that constantly fails can lock your entire account out for an hour.
Mitigation: Always use --dry-run against the staging environment for initial testing. Staging has rate limits too, but they're much higher and won't affect your production account. Monitor your certificate expiry dashboard — if automation stops working due to rate limiting, you want to know before the cert expires.
OCSP Stapling Configuration
OCSP (Online Certificate Status Protocol) stapling lets your web server append a signed, timestamped OCSP response to the TLS handshake, so clients don't need to contact the CA directly to check revocation status. Without stapling, every TLS client makes a separate OCSP request, which introduces latency, creates a privacy leak (the CA learns every IP that connects to your site), and can fail if the OCSP responder is unreachable.
The gotcha: OCSP stapling must be configured intentionally. Nginx requires ssl_stapling on and ssl_stapling_verify on plus the full certificate chain. Apache needs SSLUseStapling. Many default configurations omit this. Worse, after certificate renewal, the OCSP response cached by the server may point to the previous certificate, causing a stapling mismatch. The fix is to reload (not just restart) the web server after renewal — ACME clients' --reloadcmd should use systemctl reload, not systemctl restart.
Certificate Transparency Log Delays
All publicly trusted certificates must be submitted to Certificate Transparency (CT) logs before issuance completes.[4] The ACME CA handles this automatically — your client doesn't need to do anything. However, CT logs have maximum merge delay (MMD) requirements, typically 24 hours. If a CT log is slow to respond or temporarily unavailable, issuance can be delayed or fail.
Practical impact: When Let's Encrypt changed their CT log backend in 2024, some issuances timed out because the new logs had higher latency. This is rare, but it does happen. Always run renewal well before the certificate expires (e.g., at 60 days for a 90-day cert) to provide a buffer for CT log hiccups.
Renewal Timing Races with Short-Lived Certificates
Most ACME clients are configured to renew when the certificate has 30–60 days of remaining validity. With 90-day certificates, a daily cron job has a 30–60 day window to succeed. This is fine. But if you configure your own renewal automation (e.g., a custom Kubernetes certificate management loop) and it only attempts renewal once at the 30-day mark, a single failure (rate limited, DNS API down, CT log slow) means the cert keeps aging. The next check isn't for another 30 days — by then the cert has expired.
Mitigation: Renewal should be attempted frequently (daily or even hourly for critical services) and should stop trying only after the certificate is successfully replaced. Most ACME clients handle this correctly out of the box — the danger is when you write custom renewal logic and don't build in retries.
DNS Propagation Is Not Instant
DNS-01 challenges require the CA to query the DNS and find your TXT record. If your DNS provider is slow to propagate, or if you use multiple DNS providers with different propagation speeds, the CA may check before the record is visible. acme.sh handles this with a --dnssleep parameter (default 120 seconds), but some providers need more. Cloudflare and Route53 typically propagate in under 10 seconds; older DNS providers can take 5+ minutes.
Rule of thumb: Add 60 seconds of sleep beyond your provider's typical propagation time. Test with a dry run first.
ROI Analysis
Build the business case from your own inventory. Multiply the number of manually renewed certificates by the minutes spent requesting, approving, installing, and validating each renewal. Add the expected impact of expiry for each service, weighted by how often the current process misses one. Compare that annual cost with the one-time work to automate issuance plus recurring maintenance of the ACME client and DNS credentials. Do not use an average breach cost as a proxy for a certificate outage; they are different events with different consequences.
The Bottom Line
Certificate automation is basic infrastructure hygiene. The CA/Browser Forum schedule limits publicly trusted TLS certificates to 200 days for certificates issued from March 15, 2026, then 100 days from March 15, 2027, and 47 days from March 15, 2029.[8] Shorter validity periods increase renewal frequency and reduce the margin for manual processes.
Here is the decision framework for choosing your cert strategy:
- Public-facing web services, APIs, and customer-facing apps: Let's Encrypt (or ZeroSSL) with acme.sh or Certbot. Use DNS-01 for wildcards and internal-network services; use HTTP-01 for simple public-facing services. Automate renewal with the client's built-in cron/systemd timer.
- Services behind a CDN (Cloudflare, Akamai, Fastly): Use the CDN's origin CA certificate for the backend (Cloudflare Origin CA, Akamai's certificate management) and let the CDN handle the edge certificate with Let's Encrypt or a commercial CA. This is the most resilient architecture — the CDN manages TLS termination at the edge, and your origin only needs a certificate valid for the CDN-to-origin connection.
- Internal-only services using private DNS: Deploy an internal CA with Smallstep (step-ca). Issue certificates with ACME, just like Let's Encrypt. Distribute your internal root CA certificate to every machine that has to trust it — through mobile device management (MDM), Active Directory Group Policy (GPO), or whatever configuration management tooling you already run. Until a machine has that root in its trust store, it treats your internal certificates exactly the way a browser treats a self-signed one: warning page, refused API call, failed handshake.
- Regulated environments requiring OV/EV: Use a commercial CA (DigiCert, Sectigo) with automated renewal. Most major CAs now support ACME for OV certificates. If they don't, their REST APIs can be scripted.
- Air-gapped or classified networks: Build your own PKI. There is no shortcut. Smallstep and HashiCorp Vault PKI both support ACME or similar automation.
Use ACME or another supported enrollment protocol wherever the CA and endpoint allow it. Monitor issuance, deployment, and the certificate served to clients; test renewal before the certificate enters its final validity window; and keep an owned exception process for systems that cannot automate.
References
- "LinkedIn Outage — December 14, 2023." Multiple reports confirmed certificate expiration as the root cause. The Register.
- IETF. "Automatic Certificate Management Environment (ACME)." RFC 8555, March 2019. datatracker.ietf.org.
- Let's Encrypt. "Let's Encrypt Stats." Active domain count and total issued certificates. letsencrypt.org/stats.
- Certificate Transparency. "How CT Works." Google. certificate.transparency.dev.
- CA/Browser Forum. "Ballot SC-063: Reduce Certificate Validity Period." Scoping document and industry timeline. cabforum.org.
- Microsoft. "Investigation of certificate expiration causing Teams connectivity issues — February 2023." Microsoft Security Response Center.
- Let's Encrypt. "Rate Limits." letsencrypt.org/docs/rate-limits.
- CA/Browser Forum. "Ballot SC081v3: Introduce Schedule of Reducing Validity and Data Reuse Periods." April 11, 2025.