Home » SSL / HTTPS » SSL Certificate Expired: Check It, Renew It, and Stop It Happening Again

SSL Certificate Expired: Check It, Renew It, and Stop It Happening Again

Published 2026-10-03 | SSL / HTTPS

SSL Certificate Expired: Check It, Renew It, and Stop It Happening Again banner

An expired certificate stops browsers from trusting your site. Visitors see a full-page warning such as NET::ERR_CERT_DATE_INVALID in Chrome or "Warning: Potential Security Risk Ahead" in Firefox, and most turn back.

Step 1: read the real expiry date

Do not rely on the browser padlock alone. Ask the server what certificate it is actually serving:

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates -subject

The output shows notBefore and notAfter. If notAfter is in the past, the certificate on the server really has expired. If it is in the future, the certificate is fine and the problem is somewhere else (see the first FAQ about wrong clocks).

Use -servername every time. Without it a server hosting several sites may return a different site's certificate and mislead you.

Step 2: find out why renewal did not happen

Renewal almost never fails because you forgot. It fails because something that used to work stopped working. The common causes:

Cause How to recognise it
Automatic renewal job stopped certbot renew was never scheduled, or the timer is disabled
Validation can no longer succeed Port 80 now blocked, DNS points elsewhere, or a redirect/firewall blocks /.well-known/acme-challenge/
Certificate renewed but server not reloaded The new files exist on disk, but the web server is still serving the old certificate from memory
Manual certificate nobody remembered Bought once, installed by hand, calendar reminder lost
Hosting panel auto-renew off A toggle in the panel, or the domain moved to a different plan

The third row catches many people. Check the file, not just the live site:

sudo openssl x509 -in /etc/letsencrypt/live/example.com/fullchain.pem -noout -enddate

If the file on disk is valid but the live site is expired, the server needs a reload.

Step 3: renew

With certbot (Let's Encrypt on your own server):

sudo certbot renew --dry-run

The dry run reports exactly what fails. If it passes, renew for real and reload:

sudo certbot renew
sudo systemctl reload nginx

Use apache2 or httpd in place of nginx as appropriate. To confirm renewal is scheduled:

systemctl list-timers | grep certbot

On shared hosting or a panel (cPanel, Plesk, managed WordPress hosts): open the SSL section, find the certificate, and use the renew or reinstall option. If it will not renew, the usual reasons are that DNS no longer points at that host or the domain is behind a proxy that interferes with validation.

Behind a CDN such as Cloudflare: the visitor-facing certificate is managed by the CDN, but the certificate on your origin server can still expire and break the connection in "Full (strict)" mode. Check both.

A commercial certificate: buy or reissue it, install the new certificate and any intermediate certificates the authority provides, then reload the server.

Step 4: make sure it does not return

  • Turn on automatic renewal and confirm it with a dry run.
  • Add an external expiry reminder 30 days out. Monitoring that checks the live certificate catches the "renewed but not reloaded" case, which on-server checks do not.
  • Make sure whoever receives the certificate authority's warning emails is a mailbox somebody reads.

Common mistakes

  • Renewing the certificate but not installing it where the server reads it.
  • Fixing the main domain while a subdomain (www, mail, shop) has its own certificate that is also expiring.
  • Testing only in a browser that cached the old state. Use the openssl command or a private window.

If the site fails over HTTPS with no certificate warning at all, see HTTPS not working.

Frequently Asked Questions

My certificate is valid but the browser says it expired. Why?

Check the clock and date on the device showing the error. A wrong system date makes every certificate look expired or not yet valid. Also test from another device or network to rule out a local problem.

How long do certificates last?

Let's Encrypt certificates last 90 days and are meant to be renewed automatically. Certificates sold by commercial authorities have shorter maximum lifetimes than they used to, so assume you will be renewing at least once a year and automate it.

Can visitors still use the site after the certificate expires?

Browsers show a full-page warning and most people leave. Some can click through, but many cannot, and some browsers do not let you bypass it if HSTS is on.

Found a mistake or still stuck? Contact us. See how we write and check these guides in our editorial policy, or read about DocumentGuy.

More in SSL / HTTPS