NET::ERR_CERT_DATE_INVALID: How to Fix It Fast

Browser warning that an SSL certificate date is invalid
NET::ERR_CERT_DATE_INVALID means the certificate looks expired, not yet valid, or the device clock is wrong

NET::ERR_CERT_DATE_INVALID means the browser thinks the website’s SSL certificate is outside its valid date range: it is expired, not yet valid, or your device’s clock is wrong. If many sites fail on one device, fix the date, time, and time zone first. If one site fails on every device, the site owner needs to renew or correctly deploy the certificate.

Quick checks

  • Check your device date, time, and time zone, and turn on automatic time sync.
  • Open the same site on another device using mobile data.
  • Open a few other HTTPS sites. If many fail, the problem is on your device.
  • Disconnect any VPN or proxy and pause antivirus HTTPS scanning, then reload.
  • If you own the site, check the live certificate’s expiry date with an SSL checker or OpenSSL.

What Is NET::ERR_CERT_DATE_INVALID?

NET::ERR_CERT_DATE_INVALID is a browser SSL warning that appears when the certificate fails a date validity check. Every SSL certificate has a start date (notBefore) and an expiration date (notAfter). If the current time falls outside that window, the browser rejects it.

You may also see:

  • Your connection is not private
  • NET::ERR_CERT_DATE_INVALID
  • SEC_ERROR_EXPIRED_CERTIFICATE in Firefox

The browser blocks the site because it cannot trust the certificate at the current time. That matters most on login pages, payment forms, webmail, and admin dashboards.

Causes and fixes

1. Your device date, time, or time zone is wrong

If the clock is ahead or behind, the browser treats a valid certificate as expired or not yet valid. This often happens after a CMOS battery failure, a BIOS reset, a manual time change, travel between time zones, or disabled time sync.

How to check: Compare your device clock with the time on your phone or another reliable clock. If many HTTPS sites show date errors on this device only, this is the cause. On Linux, timedatectl shows System clock synchronized: no when sync is off.

How to fix: On Windows, go to Settings → Time & language → Date & time, enable “Set time automatically” and “Set time zone automatically,” then click Sync now. On macOS, enable “Set time and date automatically” in System Settings → General → Date & Time. On Android and iOS, enable automatic date and time. On Linux, run sudo timedatectl set-ntp true. Restart the browser and reload. If the clock resets after every reboot, replace the CMOS battery.

2. The website certificate is expired

The certificate passed its expiration date and was not renewed, or the renewal failed. Uploaded custom certificates, including custom certificates on Cloudflare, never renew on their own.

How to check: Run:

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

A notAfter date in the past means the certificate is expired. The error then appears on every device and browser.

How to fix: Renew the certificate. With Let’s Encrypt and Certbot, run sudo certbot renew (test first with sudo certbot renew --dry-run), then reload the web server with sudo systemctl reload nginx or sudo systemctl reload apache2. On managed hosting, reissue the SSL certificate from the hosting panel.

3. The certificate is not valid yet

A new certificate was deployed before its valid-from time, or the server or client clock is wrong.

How to check: In the OpenSSL output above, a notBefore date in the future points here. On the server, run date -u and compare it with the real UTC time.

How to fix: Correct the server clock with sudo timedatectl set-ntp true, or wait until the start date passes. If you received a certificate with a wrong start date, reissue it.

4. The renewed certificate was not deployed

The renewal succeeded in the panel or with Certbot, but the live site still serves the old file because the web server was not reloaded, the wrong server block handles HTTPS, or a load balancer or CDN has its own copy.

How to check: Compare the notAfter date from openssl s_client with the file on disk: sudo openssl x509 -in /etc/letsencrypt/live/example.com/fullchain.pem -noout -dates. Different dates mean the server is serving an old file. Find which file each site uses with sudo nginx -T | grep ssl_certificate or sudo apachectl -S.

How to fix: Point the HTTPS virtual host to the renewed files and reload the server. On Apache:

<VirtualHost *:443>
    ServerName example.com
    SSLEngine on
    SSLCertificateFile /path/to/fullchain.pem
    SSLCertificateKeyFile /path/to/privkey.pem
</VirtualHost>

On NGINX:

server {
    listen 443 ssl;
    server_name example.com www.example.com;
    ssl_certificate /path/to/fullchain.pem;
    ssl_certificate_key /path/to/privkey.pem;
}

Run sudo nginx -t or sudo apachectl configtest before reloading. Make sure every hostname (with and without www) uses the new certificate, and update any load balancer that terminates TLS.

5. Cloudflare edge or origin certificate has expired

Managed Cloudflare edge certificates renew automatically. Uploaded custom certificates and origin certificates do not. With SSL mode Full (strict), an expired origin certificate shows up as Error 526.

How to check: In the Cloudflare dashboard, open SSL/TLS → Edge Certificates and check the expiry of every certificate, including custom ones. Check the origin directly by bypassing Cloudflare: echo | openssl s_client -connect ORIGIN_IP:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates.

How to fix: Replace an expired custom certificate or delete it so Cloudflare’s managed certificate takes over. Renew the origin certificate, or create a Cloudflare Origin CA certificate under SSL/TLS → Origin Server and install it on the server.

6. VPN, proxy, or antivirus HTTPS inspection is interfering

Some security tools intercept HTTPS and present their own certificates. If that local certificate is broken or out of date, the browser shows this error even though the website is fine.

How to check: Click the warning’s certificate details. If the issuer is your antivirus, VPN, or company proxy rather than a public certificate authority, this is the cause. It typically affects many sites on one device.

How to fix: Disconnect the VPN and quit the app, remove proxy settings and proxy extensions, and turn off the antivirus “HTTPS scanning” or “web shield” feature. If the error disappears, update or reconfigure that software.

7. The operating system trust store is outdated

Older Windows, macOS, or Android systems with updates disabled may not trust current root certificates, which breaks validation even when the site is correct.

How to check: The error appears only on an old device while newer devices open the site normally.

How to fix: Install all operating system updates (including root certificate updates on Windows) and update Chrome, Edge, or Firefox. On devices that can no longer be updated, use a current browser such as Firefox, which ships its own trust store.

General troubleshooting

Clear browser cache after a renewal

Open the site in a private window. If it works there, clear cache and cookies and restart the browser.

Run an external SSL test

Test the public hostname with an SSL checker to see the certificate visitors actually receive, its dates, the hostnames it covers, and whether the chain is complete.

Review recent changes

Ask what changed first: certificate renewal, hosting migration, Cloudflare enabled or paused, new antivirus, a new VPN, or clock drift after an update.

Prevention Tips

  • Keep automatic date and time sync enabled.
  • Replace a weak CMOS battery if the PC clock resets often.
  • Renew site certificates early, not on the last day.
  • Verify the live deployment after every renewal.
  • Monitor Cloudflare custom certificate expiration if you upload your own certs.
  • Keep browsers and operating systems updated.
  • Avoid unnecessary HTTPS inspection on admin devices.
  • Run an external SSL test after DNS, hosting, or CDN changes.

When to Contact Support

Contact the website owner or host if only one site shows the error, the certificate is clearly expired, or the problem started right after renewal or migration.

Review Cloudflare SSL if the domain is behind Cloudflare, a custom certificate may have expired, or Full (strict) is failing origin validation.

Focus on the device if many websites fail, only one computer is affected, disabling VPN or antivirus fixes it, or the system clock keeps drifting.

Related SSL Errors

FAQ

What does NET::ERR_CERT_DATE_INVALID mean?

The browser believes the website certificate is outside its valid date range. The certificate may be expired, not yet valid, or your device clock may be wrong.

Can a wrong computer clock cause NET::ERR_CERT_DATE_INVALID?

Yes. Incorrect date, time, or time zone is the first thing to check for time-related secure connection errors.

Why do I get NET::ERR_CERT_DATE_INVALID on every website?

That usually points to a local problem: wrong system time, broken antivirus HTTPS inspection, a proxy or VPN, or an outdated operating system trust store.

Can Cloudflare cause NET::ERR_CERT_DATE_INVALID?

Yes. It can happen if a custom certificate expired, the wrong certificate is deployed, or the origin certificate is invalid in a strict validation setup.

How do I fix NET::ERR_CERT_DATE_INVALID on my website?

Check expiration and start dates, confirm the renewed certificate is actually installed, review Apache or NGINX HTTPS config, and test the public hostname with an external SSL checker.

Leave a Comment