All guides

SSL certificate expired: what visitors and site owners can do

An expired certificate is one of the most common reasons why a website suddenly disappears behind a warning page – and one of the easiest to avoid.

What happened

Every HTTPS site needs a certificate that confirms the connection really leads to this domain. Certificates are valid for a limited time only, free ones from Let’s Encrypt for example 90 days. When one expires, browsers show a full-page warning like NET::ERR_CERT_DATE_INVALID. Most visitors turn back at this point.

As a visitor

  1. Check your device’s clock. If the date is wrong, even valid certificates look expired. Typical sign: many sites show this warning at once.
  2. Check the certificate from outside with our SSL check. If it also says “expired”, it is the website.
  3. Do not enter anything confidential. No passwords, no payment details while the warning appears.
  4. Tell the owner. Surprisingly often they are the last to notice.

As a site owner: right now

  1. Renew the certificate. In Plesk under “SSL/TLS Certificates”, click “Renew” for Let’s Encrypt; on your own servers run certbot renew.
  2. Reload the web server so it uses the new certificate, for example systemctl reload nginx.
  3. Use the SSL check to confirm the new certificate is delivered and the chain is complete.

Why automatic renewal fails

  • Port 80 blocked: Let’s Encrypt checks over HTTP that you control the domain. If a firewall blocks port 80, renewal fails silently.
  • DNS points elsewhere: after a move or with a CDN in front, the validation reaches the wrong server.
  • Redirects: a rule that redirects or blocks /.well-known/acme-challenge/.
  • Domain no longer on the server: a certificate for several names fails if one of them no longer points here.
  • Expired credentials: with DNS-based validation, an invalid API key at the DNS provider.

So it does not happen again

Get warned before it is too late. Monitoring notices an outage immediately – but the certificate expiring only once it has happened. So also check the remaining validity regularly: our SSL check warns from 14 days. And after every change to firewall or DNS, test that renewal still works, with certbot for example using certbot renew --dry-run.

If Cloudflare sits in front of your server, there are two certificates: one between visitor and Cloudflare (managed by Cloudflare) and one on your server. If the second expires, visitors see error 526.