troubleshooting 2026-12-02 ⏱ 3 min read

Fix NET::ERR_CERT_DATE_INVALID

Fix NET::ERR_CERT_DATE_INVALID

NET::ERR_CERT_DATE_INVALID means the browser decided the certificate is expired or not yet valid. Two different things can cause that: the certificate really is out of date, or the device's clock is wrong. Check the cheap one first.

Fix NET::ERR_CERT_DATE_INVALID as a visitor

  1. Check the date and time on your device. A clock off by even a day, or a dead CMOS battery on a PC, produces this error on many sites at once. Turn on automatic date and time, and set the correct time zone.
  2. Try another device or network. If the site works elsewhere, the problem is local.
  3. Restart the browser and clear the cache for the site.
  4. Check for antivirus or proxy HTTPS scanning, which can substitute its own certificates. Disable the scanning feature temporarily to test.
  5. Do not click through the warning for sites that handle logins or payments, unless you are sure the cause is your clock.

If you own the site

Use the SSL Checker or decode the certificate with the SSL Decoder and read the Not Before and Not After dates.

What you seeMeaningFix
Not After is in the pastCertificate expiredRenew and install
Not Before is in the futureNot yet valid, or server clock is wrongFix server time with NTP
Dates look fineServer is serving an old copy, or only some servers are updatedReload the server, check every node and CDN
An intermediate certificate is expiredChain problemUpdate the CA bundle

Renew and reload

sudo certbot renew
sudo systemctl reload nginx   # or apache2

If renewal fails, see how to fix Certbot renewal errors. On shared hosting, run AutoSSL or reinstall the certificate in cPanel.

Check the server clock

date -u
timedatectl status

If the clock drifts, enable time synchronization with sudo timedatectl set-ntp true. A wrong server clock can make freshly issued certificates look not yet valid.

Behind a CDN or load balancer

Several layers may hold different certificates. The browser sees the one at the edge, while your origin may be the one that expired. Check each layer, and use Full (strict) so the origin is verified. See Cloudflare SSL modes.

Fix NET::ERR_CERT_DATE_INVALID next time

Automate renewal and add an expiry alert that fires while at least a third of the lifetime is left. The monitoring guide has a script you can reuse.

Other browsers and apps

The same underlying problem appears as "Your connection is not private" in Chrome and Edge, "Warning: Potential Security Risk Ahead" in Firefox, and a certificate error in curl or apps. In command-line tools, run curl -v https://example.com and read the expiry line in the output to see the dates the client received.

Related reading: the expired certificate fix and expiry alerts.

Frequently Asked Questions

Why do I see the error on many sites at once?

That points to your device's date, time, or time zone.

Is it safe to proceed anyway?

Only if you know the cause is your clock and the site is not handling sensitive data. Fix the clock instead.

Does the error mean my site was hacked?

No. It means the certificate dates are not valid at the time of the check.

Is the error the same in Firefox and Safari?

The wording differs, for example Firefox shows SEC_ERROR_EXPIRED_CERTIFICATE, but the cause is the same.

Why does the error appear on one device but not another?

The device with the error has the wrong clock, or an old cached copy of the certificate. Check the date and time setting, then reload the page from a network outside your own before you touch the server.

I renewed the certificate and the error is still there. Why?

The old certificate is still being served from somewhere: a second virtual host, a load balancer, or a CDN cache. Check what each hop sends with openssl s_client, then purge the cache and reload the server.

🔒 Test Your Website SSL Certificate Now
Run Free SSL Check →

✅ Post-Installation Verification & SEO Checklist

After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:

  • Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
  • Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
  • Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
  • Confirm both root and www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant