Web Infrastructure · 5 min read

ACME Certificate Renewal Failures: A Staging-First Troubleshooting Playbook

Diagnose HTTP-01, DNS-01, redirects, reachability and rate limits without burning production issuance attempts.

Publisher: NetSignalKit Editorial | Corrections and feedback

Independent technical information. Validate vendor claims and test changes in your own environment. Some outbound commercial links may earn a commission; see our disclosure.

Renewal failures are usually validation failures first

ACME automates certificate issuance, but the certificate authority still has to validate control of each identifier. The safest troubleshooting workflow identifies the challenge type, verifies the validation path from the public Internet, and uses a staging CA while iterating.

Let's Encrypt recommends its staging environment for testing and troubleshooting because it has generous test limits and avoids consuming production issuance capacity. Treat repeated production retries as a symptom, not as a debugging method.

Step 1 — identify the challenge and the expected network path

HTTP-01 places a token at http://DOMAIN/.well-known/acme-challenge/TOKEN and validates on port 80. Let's Encrypt can follow up to ten redirects, but only to http/https and only ports 80/443. HTTP-01 cannot issue wildcard certificates.

DNS-01 publishes a TXT value under _acme-challenge.DOMAIN. It supports wildcard certificates and private/non-public web origins, but introduces DNS API credentials and propagation behavior. Let's Encrypt recommends narrowly scoped DNS credentials or delegating validation to a separate zone/server rather than putting broad DNS credentials on every web host.

TLS-ALPN-01 validates at TLS/443 and is mainly appropriate for TLS-terminating infrastructure with explicit client support.

Step 2 — observe before requesting another certificate

For HTTP-01, use curl from an external vantage against the exact challenge path. A 200 with the expected token is ideal. A redirect can be valid, but write down every hop and confirm it stays on 80/443 and ends at the correct challenge content. A 403 from WAF/auth or a 404 from the wrong virtual host is a routing/configuration problem, not a reason to issue another order.

For DNS-01, query the authoritative/public DNS path for TXT _acme-challenge.example.com and compare the value with the ACME client's current authorization. If the provider uses anycast or has propagation delay, one resolver answering correctly is not proof that every validation vantage has the update.

NetSignalKit FIELD-tested its own HTTP challenge-shaped path only as a routing check: http://netsignalkit.com/.well-known/acme-challenge/netsignalkit-qa-token returned a 301 to the exact HTTPS path. No ACME authorization or certificate issuance was attempted, so this proves redirect behavior, not ACME validation success.

Step 3 — use staging while changing config

Let's Encrypt's ACME v2 staging directory is https://acme-staging-v02.api.letsencrypt.org/directory. Certbot exposes this through --test-cert or --dry-run; other clients have their own staging switch.

A staging certificate is intentionally untrusted by normal clients. The goal is to prove automation, challenge routing and renewal workflow without consuming production issuance attempts. Do not install a staging certificate into production and then disable browser verification to hide the resulting error.

Step 4 — interpret rate limits instead of fighting them

Let's Encrypt rate limits use token buckets. Current documentation includes limits for account registrations, new orders, certificates per registered domain, exact identifier sets and authorization failures. Reinstalling a client or deleting its configuration repeatedly can create new orders instead of clean renewals.

If you hit a rate limit, read the specific error and Retry-After data. Revoking a certificate does not reset issuance limits. Staging is the correct place to continue debugging. Modern clients that use ACME Renewal Information can receive rate-limit exemptions for coordinated renewals under documented conditions.

Reverse proxies and CDNs: prove who owns /.well-known

A common failure is that the ACME client writes the token to one server while a reverse proxy, CDN, WAF or authentication layer sends validation traffic somewhere else. Trace the path from public DNS to edge to origin and confirm that /.well-known/acme-challenge/ is routed intentionally.

Do not globally disable WAF/authentication or expose an internal origin just to pass one challenge. Prefer a narrow challenge route, DNS-01, or provider-integrated certificate management depending on the architecture.

Common failed approaches

Do not retry production issuance in a loop. Do not change DNS, firewall, reverse proxy and ACME client configuration simultaneously; you lose causal evidence. Do not assume an HTTP→HTTPS redirect is automatically bad—Let's Encrypt explicitly follows supported redirects. Do not assume a wildcard certificate can be obtained with HTTP-01.

For DNS-01, do not use a full-account DNS API token if a scoped token or delegated challenge zone is available. Certificate automation should not turn a web compromise into a domain-wide DNS compromise.

Verification after repair

  • Staging renewal/order completes with the intended challenge type.
  • HTTP-01 challenge is publicly reachable on port 80 and resolves to the expected token after any supported redirects, or DNS-01 TXT is observable through the authoritative/public DNS path.
  • Production renewal runs once after staging success and records the new certificate serial/validity.
  • The deployed service presents the expected new certificate/chain on the correct hostname.
  • Automated renewal timer/service is enabled and next-run evidence is recorded.
  • Temporary debug routes/tokens are removed and DNS API scope remains least-privileged.
  • Monitoring alerts before expiry with enough time for another controlled test.

Evidence classification for commands

FIELD: NetSignalKit tested an HTTP challenge-shaped path and exact HTTP→HTTPS redirect behavior on its public domain. AUTHORITATIVE: challenge behavior, redirect limits, staging and rate-limit semantics come from Let's Encrypt documentation and ACME standards. NOT TESTED: no certificate order was issued in this article's QA because that would change external certificate state.

Related guides

Primary sources & further reading

Sources are credited for verification, not reproduced. Linked pages may change after publication.