SSL certificate expired: how to fix it
Updated November 16, 2026 · 6 min read
When an SSL certificate expires, browsers stop trusting the site and show visitors a full-page warning instead of your pages. Chrome shows "Your connection is not private" with the code NET::ERR_CERT_DATE_INVALID. Firefox shows "Warning: Potential Security Risk Ahead" with SEC_ERROR_EXPIRED_CERTIFICATE. Most visitors will leave, and anything else that connects to the site over HTTPS, such as an API, a payment webhook or a mobile app, can fail too.
The fix is quick once you know which certificate has expired and where it comes from. Work through these steps in order.
1. Confirm the certificate has expired
Run the site through the free SSL checker. It shows the expiry date, who issued the certificate, and whether the certificate chain and hostname are set up correctly. If the expiry date is in the past, that's your problem.
You can also check from a terminal. This prints the dates the certificate is valid between, and notAfter is the expiry:
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates2. Renew it the way it was issued
How you renew depends on where the certificate came from. Find yours in this list.
- Managed hosting or a control panel (cPanel, Plesk, WordPress hosts). Look for an SSL/TLS or AutoSSL section and run the renewal or check there. If it keeps failing, your host's support can see the reason. A common one is a domain that no longer points at the host.
- Cloudflare. The certificates Cloudflare issues to visitors renew automatically. If you see Cloudflare's error 526, the expired certificate is the one on your own server, which Cloudflare checks in Full (strict) mode. Renew that one, or replace it with a Cloudflare Origin CA certificate.
- Let's Encrypt with Certbot on your own server. Run
sudo certbot renew, then reload your web server, for examplesudo systemctl reload nginx. If renewal fails, see Let's Encrypt renewal failed. - A certificate you bought. Renew or reissue it with the provider, then install the new certificate together with the intermediate certificates they give you, and reload the web server. Use the private key that matches the new certificate request.
3. Check the new certificate is the one being served
Renewing doesn't help until your server actually uses the new certificate. After installing it:
- Reload or restart the web server. Most keep the old certificate in memory until they're told to reload.
- If several servers sit behind a load balancer, check each one. A single server still holding the old certificate makes the warning appear for some visitors and not others.
- If a CDN or proxy sits in front of the site, check its certificate settings too.
Then run the SSL checker again. It should show the new expiry date. Test in a private browsing window, as a normal one can hold on to the old connection for a while.
4. Stop it happening again
Certificates don't expire without warning, but nobody is warned unless you set that up. Let's Encrypt, for example, stopped sending expiry emails in June 2025, so a failed automatic renewal can go unnoticed until the certificate lapses.
- Turn on automatic renewal wherever your setup supports it, and confirm it worked after the first renewal, not only that it was configured.
- Monitor the certificate itself, from outside, so you hear about a problem weeks before the expiry date. Site Monitors emails you 30, 14, 7, 3 and 1 days before a certificate expires, and flags hostname mismatches and broken chains. It's free for up to 5 sites.
- Expect more renewals, not fewer. Certificate lifetimes are shrinking, to 47 days by 2029, which makes renewing by hand harder to keep up with. See SSL certificates are moving to 47 days.