Skip to content

Troubleshooting guide

NET::ERR_CERT_DATE_INVALID: how to fix it

This error means the certificate's validity dates do not include today. Either the certificate really expired (or is not valid yet), or the visitor's clock is wrong. The first is yours to fix, quickly.

3 min read10 sectionsUpdated

On this page

Key points

  • Expired certificate is by far the most common cause, often after a failed automatic renewal.
  • Renewed but still failing? The server or a load balancer is still serving the old certificate: reload it.
  • Only one visitor? Their device clock is probably wrong.
  • Alert well before expiry, for example 14 and 7 days ahead.

Check the certificate

bash
# what the server serves right now, and its validity dates
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
  | openssl x509 -noout -subject -issuer -dates
# certbot: which certificates exist and when they expire
sudo certbot certificates

Fix it

  1. Renew the certificate. With Let's Encrypt and certbot: sudo certbot renew, then check why automatic renewal failed (sudo certbot renew --dry-run, the systemd timer or cron job, and the HTTP-01 or DNS-01 challenge path).
  2. Reload every server that serves it: sudo systemctl reload nginx (or Apache, HAProxy, your proxy). A renewed file on disk changes nothing until the server reloads.
  3. Update copies elsewhere: load balancers, CDNs, API gateways and Kubernetes secrets often hold their own copy. Check each public host name.
  4. Serve the full chain (the certificate plus intermediates), or some clients will still fail after renewal.
  5. Retest with openssl from outside your network.

Why automatic renewal fails

  • The HTTP-01 challenge cannot reach /.well-known/acme-challenge/ because of a redirect, a firewall or a CDN rule.
  • The DNS-01 challenge credentials expired or the DNS provider changed.
  • The renewal timer or cron job was removed during a server migration.
  • The certificate renewed, but the post-renewal reload hook never ran.
  • A certificate was issued by hand once and nobody remembered it.

Visitors: fix your clock

If other people can open the site, set your device to update date, time and time zone automatically. A clock that is days or years off makes every certificate look invalid.

Catch it before it expires

Certificate expiry is completely predictable, which makes it one of the most avoidable outages there is. An SSL certificate check reads the served certificate on every host name and alerts days ahead; see SSL certificate expiry monitoring for the thresholds and routing that work.

Frequently asked questions

Can I just click "proceed anyway"?

Only on a site you control and for testing. For visitors the warning is right: the browser cannot confirm the connection is secure.

How early should I renew?

Automated renewals usually run about 30 days before expiry. Alert at 14 and 7 days left, so a failing renewal gets attention while there is still time.

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

Different devices may reach different servers (for example IPv6 vs IPv4, or a CDN edge), one of which still serves the old certificate, or the phone's clock is wrong.

Check it now, free

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.