Home / Guides

Server guide

SSL certificate expired or not renewing: how to fix it

An expired certificate turns a working site into a scary warning page. Most renewals fail for a few simple reasons.

2 min readUpdated November 2026 by the RootManage teamWorks on Ubuntu, Debian, AlmaLinux and Rocky unless noted

The short answer

Check the certificate dates, find the renewal error (Certbot or AutoSSL), fix what blocks the validation (DNS, port 80, a redirect rule) and renew again.

Confirm what the server sends

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

notAfter is the expiry date. If it is in the past, renewal has been failing for a while. If the dates look fine, the browser may be using a cached or different server (a CDN or another IP).

Certbot servers

terminal
sudo certbot certificates
sudo certbot renew --dry-run
sudo systemctl list-timers | grep certbot

The dry run shows the real error without changing anything. Check that a renewal timer exists.

cPanel or WHM servers

Open WHM, then Manage AutoSSL, and read the logs. Run a new check for the domain. The log names the reason for each failed domain.

The usual causes

  • The domain points to another server. The validation reaches the wrong place. Fix the A record.
  • Port 80 is blocked by a firewall, or a redirect sends /.well-known/acme-challenge/ somewhere else.
  • A CAA record lists a different certificate authority.
  • A proxy or CDN answers instead of your server.
  • Rate limits after many failed attempts: wait before you try again.
  • A wildcard needs DNS validation, not file validation.

Renew and reload

terminal
sudo certbot renew
sudo systemctl reload nginx   # or: systemctl reload httpd

Then check the site from outside and test again with the openssl command.

Do not let it happen again

Alert at least 14 days before expiry, and check that the renewal timer or AutoSSL schedule is on. A health agent can warn you before a certificate runs out.

Questions people ask

Can I use a free certificate for a business site?

Yes. Free certificates encrypt the same way as paid ones. Paid ones add warranty and company validation.

Why does it work on my computer but not on my phone?

The server may send an incomplete certificate chain. Install the full chain file.

My site is down because of the certificate. What first?

Renew it. If that is not possible quickly, a temporary certificate removes the warning while you fix the cause.

Want a person to look at it?

Tell us what you see. We reply with what we think is wrong and what it would take to fix it.