Home / Fix guides / Website security

How to fix an expired SSL certificate on your website

Renew the certificate with whoever issued it (often your host), install the new one on your server, then reload the server and test it. Many hosts can do this with one click.

An SSL certificate (more precisely a TLS certificate) is what lets a browser trust that it is really talking to your website and that the connection is encrypted. Every certificate has an end date. When that date passes, browsers stop trusting it and show visitors a full page warning instead of your site. Nothing is wrong with your pages or your data: the certificate simply needs to be renewed and installed again.

What people see when a certificate has expired

The wording depends on the browser:

  • Chrome and Edge: "Your connection is not private" with the code NET::ERR_CERT_DATE_INVALID.
  • Firefox: "Warning: Potential Security Risk Ahead" with SEC_ERROR_EXPIRED_CERTIFICATE.
  • Safari: "This Connection Is Not Private".

Most visitors will leave at this point. Some will click through the warning, which is not a habit you want to encourage. Other things can break too: payment forms, embedded widgets, API connections, and email clients that use your domain's mail server.

Why it matters

  • Trust and sales: a browser warning on a shop, booking page or contact form looks like a hacked site. Visitors do not stop to read the details.
  • Security: the encryption itself is not instantly broken, but people are being trained to ignore warnings, which is exactly what attackers rely on.
  • Search: Google treats HTTPS as a ranking signal, and crawlers that hit errors may visit less often. Visitors bouncing off the warning page hurts you more than any ranking effect.
  • Integrations: payment providers, apps and other servers that connect to your site often refuse expired certificates outright.

How to check if your certificate has expired

Free ways, from easiest to most technical:

  1. Open your site in a browser. If you see the warning, click the warning or padlock area (some browsers let you view certificate details) and look at the "Valid to" date.
  2. Use a free online SSL checker such as Qualys SSL Labs (SSL Server Test). It shows the expiry date and also flags other certificate problems.
  3. If you have a terminal, run this (replace the domain):
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates

The line notAfter= is the expiry date. If it is in the past, the certificate has expired. Also check www.example.com and any subdomains separately, since each name can have its own certificate.

How to fix it: the general steps

  1. Find out who issued it. It might be your host (often Let's Encrypt or a provider bundled with hosting), a paid certificate authority, or a CDN such as Cloudflare. Your hosting control panel or old invoices will tell you.
  2. Renew it. With a free or automatic certificate, this is usually a button or a command. With a paid certificate, you buy or renew it, then create a certificate signing request (CSR) in your hosting panel or on the server and complete domain validation.
  3. Install the new certificate with its intermediate chain. Installing only the main certificate is a common mistake and causes a different error, covered in incomplete certificate chain.
  4. Reload the web server so it starts using the new files. Renewing on disk does nothing until the server reloads.
  5. Clear caches at any CDN or proxy in front of your site, and test again.

Fixing it on common platforms

Exact menu names vary by version, theme and host, so treat these as where to look.

  • WordPress: WordPress does not issue certificates itself. They come from your host. Look in your host's dashboard for an SSL or Security section and a renew or reissue option. A plugin cannot fix an expired certificate on the server. See the WordPress guide.
  • cPanel: look for SSL/TLS Status and run AutoSSL for the affected domains. For a paid certificate, use SSL/TLS, then Manage SSL Sites to install the new one. See the cPanel guide.
  • Plesk: open the domain, then SSL/TLS Certificates. If the Let's Encrypt extension is installed, reissue from there.
  • Nginx or Apache on your own server: if you use Certbot, run sudo certbot renew, then check what it found with sudo certbot certificates. After renewing, test and reload: sudo nginx -t && sudo systemctl reload nginx for Nginx, or sudo apachectl configtest followed by sudo systemctl reload apache2 for Apache (the service is called httpd on some systems).
  • Cloudflare: the certificate visitors see (Edge Certificates under SSL/TLS) is normally renewed automatically. If you see errors anyway, the certificate on your own server (the origin) may have expired, especially if the mode is Full (strict). Renew that one on your host.
  • AWS: certificates from AWS Certificate Manager renew by themselves only if the validation record (or email approval) is still in place. Check the certificate status in ACM and fix any pending validation.

If you are not comfortable on a server, send your host's support or your developer a short message: "The SSL certificate for our domain has expired. Please renew it, install the full chain, and reload the server."

Why auto-renewal fails

If you thought renewal was automatic, one of these is usually the cause:

  • The domain's DNS or hosting moved, so validation now points to the wrong place.
  • Port 80 is blocked or redirects in a way the validation cannot follow.
  • The Certbot timer or scheduled job stopped running after a server change.
  • The credit card for a paid certificate expired, or the renewal email went to an old address.
  • The validation DNS record was deleted.

How to confirm the fix worked

  1. Open the site in a private or incognito window and confirm there is no warning.
  2. Check the new "Valid to" date in the browser or with the command above.
  3. Test www, the bare domain and key subdomains.
  4. Run the SSL Labs test and look for chain or protocol warnings, for example outdated TLS version.
  5. Try on a phone using mobile data, since your own device may have cached the old result.

How to stop it coming back

  • Turn on automatic renewal wherever your provider offers it, and confirm it actually ran after the first renewal.
  • Put the expiry date in a shared calendar, with reminders a month and a week ahead. Public certificate lifetimes are getting shorter over the coming years, so renewals will become more frequent, not less.
  • Send renewal notices to a shared mailbox, not one person's inbox.
  • Keep a short note of where each certificate comes from and who is responsible.
  • Use a regular check. SiteMonday's week 10 service covers domain, SSL and email deliverability and reports on certificate problems, though fixing them stays with you or your developer.

FAQ

See the questions below for quick answers.

Step by step for your platform

Questions

Can I just click past the warning to keep using my site?

Visitors can usually click through, but most will not, and you should not tell customers to. The real fix is renewing and installing the certificate.

Is an expired certificate the same as a hacked website?

No. Expiry is an administrative problem, not a break-in. Your files and data are not affected, though the warning looks alarming to visitors.

How long does it take to fix?

With a free or automatic certificate it can take minutes. Paid certificates may need domain validation first, which can take longer depending on the provider.

I renewed the certificate but the warning is still there. Why?

Usually the server was not reloaded, the intermediate chain is missing, or a CDN or cache is still serving the old certificate. Reload, check the chain and clear caches.

Does an expired certificate affect my Google rankings?

HTTPS is a small ranking signal, and the bigger loss is visitors leaving at the warning page. Fixing it quickly limits any damage.

Do I need to buy a new certificate every time?

Not always. Many hosts provide free certificates that renew automatically, while paid certificates must be renewed or replaced before the end date.

Related problems