An expired certificate is one of the most visible and avoidable site failures: every visitor gets a full-page browser warning, and the fix always happens under pressure after the fact. The whole problem is preventable by checking expiry dates proactively and confirming that whatever is supposed to renew them actually is. On cPanel, AutoSSL renews Let’s Encrypt/Sectigo certificates automatically — but it does not cover manually installed certificates, and AutoSSL itself can silently stop renewing a domain that has drifted (DNS moved, validation breaking). Staying ahead means knowing which certs auto-renew, which do not, and which are quietly failing to.
What’s happening
cPanel issues and renews certificates through AutoSSL, which runs on a schedule and reissues covered certificates well before they expire (typically renewing around 30 days out). For domains AutoSSL controls and can validate, expiry is a non-issue — the system handles it. The gaps are the certificates AutoSSL does not manage: a manually installed commercial or EV certificate (AutoSSL leaves these alone by design), a domain that was excluded from AutoSSL, or a domain whose validation has started failing (DNS moved off-server, HTTP-01 path redirecting) so AutoSSL can no longer renew it and the existing cert ages out.
The failure is silent until the cert actually expires, because nothing alerts you that AutoSSL skipped a renewal unless you look. So the operational task has two parts: a periodic inventory of expiry dates across the server (to catch anything within the danger window), and a check that AutoSSL is succeeding on the domains it owns (to catch the ones drifting toward failure). Manual certs need a separate reminder because nothing on the server will renew them for you.
How to verify
Check a single certificate’s expiry from the outside, and the whole server’s inventory from WHM’s data:
# Expiry of one live cert (days remaining is what matters)
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
| openssl x509 -noout -enddate -subject
# Will it expire within 21 days? (exit 0 = still good, 1 = expiring)
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
| openssl x509 -noout -checkend 1814400
Inventory all installed certificates and their expiry across the server, and see what AutoSSL is doing:
# Every installed SSL host with its expiry (server-wide)
whmapi1 installed_hosts | grep -iE 'domain|not_after|certificate'
# AutoSSL's last run and any domains it failed to renew
ls -t /var/cpanel/logs/autossl/ | head
grep -iE 'failed|excluded|will expire' \
/var/cpanel/logs/autossl/$(ls -t /var/cpanel/logs/autossl/ | head -1)
Identify which certs are manual (AutoSSL will not touch these) versus AutoSSL-managed:
# Is AutoSSL enabled and which provider?
whmapi1 get_autossl_providers
# Per-account: is AutoSSL managing this domain or is it a manual cert?
/usr/local/cpanel/bin/autossl_check_cpuser <cpaneluser>
A short -checkend window returning “Certificate will expire” flags an at-risk cert. AutoSSL log lines with failed/excluded show domains that will not auto-renew. A manually installed cert with no AutoSSL coverage is one nothing will renew automatically.
The fix
- Inventory expiry dates server-wide on a schedule — the foundation. Periodically list every installed cert and its
not_afterdate (viawhmapi1 installed_hostsor a loop ofopenssl ... -enddateover your domains) and flag anything inside a danger window, say 21 days. Catching it early turns a renewal into routine work instead of an outage. - Confirm AutoSSL is enabled and running — for the certs AutoSSL owns, the job is mostly verifying it is working. Check it is enabled with a provider in WHM » SSL/TLS » Manage AutoSSL, and that the scheduled run is happening (the logs in
/var/cpanel/logs/autossl/are dated recently). A disabled or stalled AutoSSL is the quiet cause of a wave of expiries. - Read the AutoSSL log for failed renewals — the most useful single check. Domains that AutoSSL tried to renew but could not (validation failing, name excluded) appear in the log with a reason. These are the ones heading for expiry while everything looks fine; fix the underlying validation issue so the next run succeeds.
- Force a renewal check when something is close — if a managed cert is inside the danger window, do not wait for the schedule: run
/usr/local/cpanel/bin/autossl_check_cpuser <cpaneluser>(or Check in the UI) to reissue now. Confirm afterward withopenssl ... -enddatethat the new expiry is months out. - Track manually installed certs separately — AutoSSL will not renew a manual commercial/EV certificate, by design. For each one, record the expiry and set a calendar reminder ahead of it, since nothing on the server will warn you. When it is due, obtain the new cert from the CA and install it in WHM » Install an SSL Certificate.
- Decide whether a manual cert should become AutoSSL-managed — many manually installed certs exist for no current reason and could be replaced by free AutoSSL coverage, which then renews itself. Unless the site genuinely needs an OV/EV or a specific CA, switching it to AutoSSL removes the manual-renewal burden entirely.
- Set up expiry monitoring so you are told, not surprised — the durable fix is automated notification. cPanel can email on AutoSSL failures (WHM » Contact Manager / AutoSSL notifications); an external uptime/SSL monitor that checks the public cert and alerts at N days out is a strong backstop, especially for manual certs the server will not flag.
- Verify after every renewal — once a cert renews or is reinstalled, confirm from the outside with
openssl s_client ... -enddate -subjectthat the live cert is the new one and the expiry is far out, and that it covers the right names. A renewal you did not verify is a renewal you cannot trust.
The goal is that no certificate ever surprises you: the managed ones are confirmed renewing, the manual ones are on a reminder, and an alert reaches you before any of them lapse. Stack Harbor monitors certificate expiry and renewals under WHM server management — start a conversation to make sure no cert ever expires unnoticed.