How to Fix an Expired SSL Certificate
To fix an expired SSL certificate, renew it, install the full chain, reload every server and clear the CDN cache. As a visitor, check your device clock first, because a wrong date shows the same error.
If you are visiting the site
- Check your device clock. If your date or time zone is wrong, valid certificates look expired. Turn on automatic date and time.
- Test on another device or network. If it fails everywhere, the certificate really expired and only the owner can fix it.
- Do not enter passwords or card details on a site you cannot verify. Contact the site owner or come back later.
- Avoid clicking through unless the site is your own staging server.
Fix an expired SSL certificate as the owner
Step 1: Confirm the end date
Use the Live SSL Checker or run:
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates
Step 2: Renew the certificate
| Your setup | How to renew |
|---|---|
| certbot on a server | sudo certbot renew, then reload the web server |
| cPanel AutoSSL | SSL/TLS Status, then Run AutoSSL |
| Manual certificate | Issue a new one at TryFreeSSL or your CA, then install it |
| Managed host or CDN | Check the dashboard; contact support if renewal is stuck |
Step 3: Install the full chain
Install the certificate with the intermediates (fullchain). A leaf alone can cause trust errors on some clients.
# Nginx
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
Step 4: Reload everything
A renewed file on disk does nothing until the server reloads.
sudo nginx -t && sudo systemctl reload nginx
# or
sudo apachectl configtest && sudo systemctl reload apache2
If a load balancer, reverse proxy or CDN terminates TLS, install or refresh the certificate there too.
Step 5: Verify from outside
Run the checker again and confirm the new end date. If it still shows the old one, another server or cache is serving the old copy. Check every node behind a load balancer and any CDN custom certificate settings.
Why renewal failed
- The domain no longer points at the server, so HTTP validation fails.
- A firewall change blocked port 80.
- The DNS API token expired, for DNS validation.
- The renewal timer was removed or the cron job is not running.
- The disk was full and certbot could not write files.
Test renewal with sudo certbot renew --dry-run and read the errors.
Fix an expired SSL certificate for good
Set an independent alert. See SSL Certificate Expiration Alerts: Setup Guide, and read what happens when a certificate expires for the wider impact.
Related reading: the date invalid error, automatic renewal, the Firefox name mismatch error and why a certificate cannot last forever.
Frequently Asked Questions
Can I extend an expired certificate?
No. You must issue a new one.
Does the new certificate need a new key?
It can reuse the old key, but a new key is better practice.
Why does it still show expired after renewal?
The server was not reloaded, or another server or CDN still serves the old certificate.
Is the browser warning always about the certificate date?
No. Wrong hostnames and untrusted issuers show different error codes.
How long does a renewed certificate take to show?
Usually minutes once the new files are installed and the server reloaded. If the browser still shows the old dates, the certificate is coming from another server, a load balancer or a CDN cache, so check each hop.
Can I renew before the expiry date?
Yes, and you should. Renewal works while the old certificate is still valid, which leaves time to fix a failure. Waiting for the last day turns a small problem into an outage.
Why did the renewal not happen automatically?
The client may not be scheduled, the challenge may have stopped working, or the reload may be missing. Run the renewal in dry-run mode and read the exact error instead of guessing.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.