SSL certificate expired: what happens, and how to fix it

Last checked

In short

An expired certificate does not take the server down, but browsers refuse to show the site: visitors get a full-page warning and most leave. Apps and API clients simply fail to connect.

The fix is to renew the certificate and make the server use the new one. On most set-ups that is one command or one button. Then check from outside that the new certificate is the one being served.

Check yours now with the ssl certificate checker →

What visitors see

Chrome shows “Your connection is not private” with the code NET::ERR_CERT_DATE_INVALID. Firefox shows “Warning: Potential Security Risk Ahead” and SEC_ERROR_EXPIRED_CERTIFICATE. Safari says “This Connection Is Not Private”.

A visitor can sometimes click through the warning. If the site sends an HSTS header, as most should, browsers remove that option and the site cannot be opened at all until the certificate is fixed.

Things that are not browsers do not ask anyone: a mobile app, a payment callback, another company's server calling your API. They fail, often silently, and you hear about it later from whatever depended on them.

First, confirm that expiry is the problem

The same warning page appears for other reasons: a certificate for a different name, an incomplete chain, or the clock on the visitor's own computer being wrong. Check the certificate from outside before changing anything.

An SSL certificate checker shows the expiry date, the names the certificate covers and whether the chain is trusted. If the date is in the past, carry on. If the date is fine and only one person sees the warning, ask them to check their computer's date.

Renew it

How depends on where the certificate comes from.

  • Let's Encrypt with Certbot: run certbot renew on the server, then reload the web server (for example systemctl reload nginx). If it fails, the message says why - most often the domain no longer points at this server, or port 80 is closed.
  • A hosting control panel (cPanel, Plesk, a managed host): find SSL/TLS in the panel and run AutoSSL or “Renew”. If the certificate was bought, it must be reissued by the seller and installed again.
  • A CDN or platform (Cloudflare, Vercel, Netlify): the certificate at the edge is renewed for you. If it expired, the platform could not verify the domain - look for a domain warning in its dashboard, usually a DNS record that changed.
  • A bought certificate on your own server: renew it with the seller, complete the validation, download the new files, install the certificate and its intermediate certificates, and reload the server.

Check that the fix reached visitors

Renewing is not the same as serving. A common trap is a new certificate on disk while the web server still holds the old one in memory: reload it. Another is fixing one server behind a load balancer and not the others.

Check again from outside. The expiry date should now be months away. Look also at how many certificates the server sends: a chain of one means the intermediate certificate is missing, which works in your browser and fails in apps.

Why it happened, and how to stop it

Certificates almost never expire because nobody set up renewal. They expire because renewal stopped working and nothing said so: the DNS record used for validation was removed, a firewall rule closed port 80, the renewal job vanished in a server move, or the reminder email went to someone who left.

Automatic renewal needs a check on it. A certificate monitor reads the certificate your server actually sends and warns you two weeks before the end. With 90-day certificates that renew at 30 days left, a warning at 14 means renewal has already been failing for two weeks - with time to fix it calmly.