NET::ERR_CERT_DATE_INVALID means the certificate's validity dates do not include the current time as the browser sees it. There are only two ways that happens: the certificate really is outside its window (expired, or not yet valid), or the certificate is fine and the computer's clock is wrong. Those two causes need opposite fixes, so the first job is always to work out which side of the connection has the date problem. This article covers how certificate validity dates work, how to confirm the real expiry, the clock check that catches the client-side case, and the renewal gaps that cause most genuine expirations.
How certificate validity dates work
Every X.509 certificate carries two timestamps: notBefore, the moment it becomes valid, and notAfter, the moment it expires. A browser treats the certificate as valid only if its own current time falls between those two. Miss on either end and you get ERR_CERT_DATE_INVALID: past notAfter is the familiar "expired" case, while before notBefore is the rarer "not yet valid" case, usually seen right after issuing a certificate on a server whose clock is running fast.
You can read both dates straight from the server:
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null \
| openssl x509 -noout -dates
notBefore=Sep 1 00:00:00 2026 GMT
notAfter=Nov 30 23:59:59 2026 GMT
Those dates are in GMT and come from the certificate itself, so they are the same no matter whose clock is off. That makes them the anchor for the whole diagnosis.
Step one: is it the certificate or the clock?
If the error appears for you on many different HTTPS sites at once, suspect your own clock before any server. A wrong system date, often weeks or years off after a dead CMOS battery, a fresh OS install, or a misconfigured time zone, makes every valid certificate look expired or not-yet-valid. Open your device's date and time settings, enable automatic network time synchronization, and recheck. If the errors clear across all sites, the clock was the cause.
If the error appears on one specific site and that site's notAfter date is genuinely in the past, the certificate on that server has expired and the owner needs to renew it. Comparing the notAfter value above against the real current date settles it immediately. The Valla DNS SSL checker helps here because it reports the certificate's validity window from the server's perspective, independent of your local clock, so you can trust the dates even if your own machine's time is suspect.
Step two: fixing a genuinely expired certificate
If the certificate has truly expired, renewal is the fix, but it is worth understanding why it lapsed so it does not happen again. The dominant cause today is a broken automated renewal. Most certificates are issued through ACME (Let's Encrypt and others) with short 90-day lifetimes, on the assumption that a timer renews them automatically. When that automation silently fails, the certificate quietly ages out.
Common ACME renewal failures include a cron or systemd timer that was disabled or never ran, the HTTP-01 validation path being blocked by a redirect or firewall so the CA cannot confirm control, a DNS-01 record that was removed, or a renewal that succeeded but the web server was never reloaded to pick up the new certificate. Check your renewal logs, run the renewal manually (for example certbot renew), confirm it reloads the server, and verify the new notAfter date is in the future. For certificates bought from a CA rather than issued via ACME, renewal is a manual purchase-and-reinstall, so a calendar reminder well before expiry is the safeguard.
Step three: the not-yet-valid case
If the error is about notBefore being in the future, the certificate was issued with a start date later than the client's current time. This usually means the issuing server's clock is ahead, or a client's clock is behind. Fix the clock on whichever machine is wrong, synchronize it to network time, and the certificate becomes valid the moment real time reaches notBefore.
Frequently asked questions
Does ERR_CERT_DATE_INVALID always mean the certificate expired?
No. It means the current time is outside the certificate's validity window. That is either a genuinely expired or not-yet-valid certificate, or a wrong clock on the viewing device. Check whether the error happens on many sites (clock) or just one (certificate).
The site is fine on my phone but expired on my laptop.
That points to the laptop's clock. The certificate's dates are the same for every device, so if one device sees it as valid and another does not, the one showing the error has the wrong date and time. Enable automatic time sync on it.
My Let's Encrypt certificate expired even though auto-renewal is set up.
The automation failed somewhere: a stopped timer, blocked HTTP-01 or DNS-01 validation, or a renewal that ran but did not reload the web server. Run the renewal manually, read the output for the failing step, and confirm the server reloaded with the new certificate.
How do I check the real expiry date?
Read notAfter from the certificate directly with openssl x509 -noout -dates, or use an SSL checker that reports the validity window from the server side. Both give you dates that do not depend on your local clock.
Can I just click through the warning?
On your own server you know is simply mid-renewal, briefly, yes. But an expired certificate also means the browser can no longer confirm the site is current and uncompromised, so the right action is to renew rather than to train anyone to bypass it.
Preventing the next expiry
Once the immediate error is cleared, the goal is to never see it again, and that is a monitoring problem rather than a certificate one. The failure is predictable because every certificate announces its own deadline in the notAfter field, so the fix is to watch that date and act well before it arrives rather than after a browser does. Three habits catch almost every genuine expiry before a visitor hits it.
First, monitor notAfter externally. A check that connects to the live site and reads the server's actual certificate catches the case the renewal log misses: a renewal that ran, reported success, but never reloaded the web server, so the old certificate is still being served. Alert on a threshold, commonly 14 to 30 days of remaining validity, so a stalled automation surfaces with time to fix it by hand. Second, verify after every renewal rather than trusting the exit code. Reconnect and confirm the served notAfter actually moved forward; if the date is unchanged, the new certificate was issued but not deployed. Third, watch the notBefore edge on servers whose clocks you do not fully trust, since a host running fast can issue or install a certificate that is briefly not yet valid.
For certificates bought from a commercial CA rather than issued through ACME, there is no automation to monitor, so a dated calendar reminder several weeks ahead of notAfter is the whole safeguard. In both cases the discipline is the same: treat the certificate's own expiry date as the trigger, and confirm every renewal landed on the server that visitors actually reach.
How early should I renew a certificate?
Renew once the remaining validity drops below your alert threshold, typically two to four weeks out. ACME clients renew automatically around the one-third-remaining mark, which for a 90-day certificate is roughly 30 days before notAfter, leaving ample room to notice and fix a failed attempt.
A date error is really a question of whose clock to trust, and the certificate's own notBefore and notAfter settle it. Read your certificate's real validity window, independent of your local time, with the Valla DNS SSL checker, then renew the certificate or fix the clock as the dates dictate.