Skip to content

Recovery after AutoSSL broke every certificate overnight

When AutoSSL fails to renew across many users at once, the cause is usually a single shared dependency. Here is the diagnosis and the rapid-fix path.

A morning where the AutoSSL run that finished at 04:00 left half the accounts with expired certs is alarming but recoverable. The pattern usually has a single root cause — a CA provider outage, an HTTP-01 path failure due to a firewall change, or a hostname that AutoSSL relies on now resolves wrong. Diagnosing it quickly means looking at the AutoSSL problems summary before re-running anything.

What’s happening

AutoSSL runs once a day per user, issues new certs through Sectigo (cPanel’s default) or Let’s Encrypt, and installs them. For renewal to work, three things must hold: the CA must accept the order, the HTTP-01 (or DNS-01) challenge must succeed, and AutoSSL must be able to write to the user’s cert store. If any one of those breaks for a shared reason (Sectigo outage, firewall blocks Let’s Encrypt validation IPs, DNS for the hostname is wrong), many users fail in the same run.

How to verify

Get the AutoSSL state in one view:

# what AutoSSL thinks is wrong, per user
whmapi1 get_autossl_problems
# overall AutoSSL state
whmapi1 fetch_ssl_certs_for_fqdns fqdns=example.com
# recent AutoSSL run log
ls -lt /var/cpanel/logs/autossl_check.log* | head
tail -100 /var/cpanel/logs/autossl_check.log
# which CA is in use
whmapi1 get_autossl_provider
# is the validation path reachable?
curl -I http://example.com/.well-known/acme-challenge/test

For Let’s Encrypt specifically: curl https://acme-v02.api.letsencrypt.org/directory should respond. For Sectigo: check cPanel’s status page.

The fix

  1. Re-run for affected users — whmapi1 start_autossl_check_for_all_users reruns AutoSSL across the whole server. If the provider issue has cleared, certs renew. Monitor tail -f /var/cpanel/logs/autossl_check.log.
  2. Switch providers if one is broken — whmapi1 set_autossl_provider provider=cPanel (Sectigo) or provider=LetsEncrypt. If Sectigo is in a multi-hour outage, swap to Let’s Encrypt temporarily. Switch back after.
  3. HTTP-01 path failure — curl http://example.com/.well-known/acme-challenge/test should return either 404 or a placeholder, not 403 or a connection error. If 403, a .htaccess rule or mod_security is blocking. If timeout, the firewall is the issue.
  4. DNS pointing wrong — if the domain was moved to a different IP without notifying AutoSSL, validation fails. AutoSSL retries on the next run; manually invoke after DNS is corrected.
  5. Disable AutoSSL for problem accounts — whmapi1 disable_autossl_for_user user=<user> if a single account has an unfixable issue (custom cert manually installed, domain not under your control). Stops the noise; renew the cert separately.

After the immediate fix, configure an alert on whmapi1 get_autossl_problems > 0 so the next mass failure is caught at hour 1, not hour 8. Stack Harbor handles AutoSSL operations under cPanel/WHM management — start a conversation when cert issues recur across users.