A certificate is expiring in 8 hours and the renewal has failed three times. This is a real on-call situation. The mistake to avoid is making destructive changes under time pressure — deleting the old cert, switching providers, editing DNS in ways you cannot revert. The recovery path is short, ordered, and reversible.
What’s happening
A cert renewal failure has the same root causes as a normal AutoSSL failure (HTTP-01 reachability, DNS-01 plumbing, CAA mismatch, rate limits, registration issues). Under pressure, the right move is to identify which one is hitting, fix that one thing, and run a single retry. If you cannot identify the cause inside the window, the fallback is a manual SSL purchased and installed, not a destructive change to DNS or AutoSSL config.
How to verify
whmapi1 fetch_ssl_certificates_for_user user=<user> | grep -E "domain|not_after"
openssl s_client -connect example.com:443 -servername example.com < /dev/null 2>&1 | \
openssl x509 -noout -dates
tail -50 /var/cpanel/logs/autossl.log
curl -v http://example.com/.well-known/acme-challenge/test 2>&1 | head -20
dig +short CAA example.com
-dates tells you exactly when the current cert expires. Combine with the failure reason in the log.
The fix
In order, stop at the first thing that resolves:
- Reachability check:
curlthe well-known path. If a redirect or rewrite is breaking it, edit the.htaccessor vhost include to exempt/.well-known/acme-challenge/and retry AutoSSL once. - CAA mismatch:
dig CAA. If the AutoSSL provider is not listed, either add it temporarily or switch the AutoSSL provider for that account to one that is listed. - DNS provider plugin broken: if using DNS-01 with Cloudflare and the token expired, the renewal cannot publish TXT. Rotate the token, save in WHM, retry.
- Rate limit: if you hit the Let’s Encrypt weekly limit, switch this account to Sectigo as the AutoSSL provider temporarily.
- The fallback (last resort, inside the expiry window): buy a 1-year DV cert from a commercial CA, install via cPanel > SSL/TLS, exclude domain from AutoSSL. Restore AutoSSL after the underlying issue is resolved.
- What not to do under pressure: do not delete the old cert until the new one is installed and verified. Do not edit DNS in ways you cannot revert. Do not change AutoSSL providers globally.
- Post-incident: write a one-page summary, fix the root cause, and add a monitor that alerts at 30 days before expiry. The on-call you avoid in three months is worth the 20 minutes now.
For environments where this kind of incident should not happen, Stack Harbor monitors certificate expiry as part of monitoring and support.