How to Fix ERR_CERT_DATE_INVALID
ERR_CERT_DATE_INVALID has two common causes: a wrong clock on the visitor's device, or a certificate that really has expired. Here is how to tell them apart and fix each.
9 min readUpdated Nov 21, 2026By XPASS Editorial Team

You click a link and instead of the page you get a full-screen warning: "Your connection is not private" with the code ERR_CERT_DATE_INVALID underneath. The message is blunt, but the cause is simple. A certificate has dates, and the browser has decided that today falls outside them. What is not obvious is whose fault it is. Sometimes the site's certificate has really expired. Sometimes the problem is a phone whose clock drifted or reset. Sometimes the leaf is fine and an older intermediate certificate in the path has quietly run out.
This guide helps you sort these cases quickly. If you are a visitor, you will learn what to check on your own device. If you run a website, you will learn how to confirm an expired certificate, renew and install it correctly, and avoid the same surprise next year. A date error is also closely related to chain problems, so it is worth keeping the guide to verifying an SSL certificate chain open alongside this one.
What the error actually checks
Every X.509 certificate contains two timestamps, usually called "Not Before" and "Not After". They define the validity period. The format and the rules for how clients must treat these fields are set out in RFC 5280. When a browser opens an HTTPS connection, it checks each certificate in the chain against the current time on the device. If the time is earlier than "Not Before" or later than "Not After" for any certificate, the check fails and the browser shows ERR_CERT_DATE_INVALID, or a similar message in other browsers.
Two details matter:
- The comparison uses the visitor's clock, not yours. The server cannot tell the browser what time it is. If a device thinks it is a different year, perfectly good certificates look expired or premature.
- Every certificate in the chain has dates. The leaf can be fine while an intermediate has expired, and the result is the same error.
This is why the first job is to find out which of three situations you are in: the device clock is wrong, the leaf certificate is out of date, or an intermediate in the chain is out of date.

Step 1: Rule out the device clock
If you are a visitor, or if you are testing a site and only one machine fails, start here.
- Check the date, time and time zone on the device. Look at the year in particular. A dead clock battery on an older computer, a reset after a repair, or a manually changed date can all set the clock far from the real time.
- Turn on automatic date and time, and automatic time zone, in the system settings. Wait a few seconds for the clock to sync.
- Restart the browser, or open a private window, and reload the page.
- If your device uses a virtual machine, container or test emulator, check the clock of that environment separately. They often start with the wrong time after being paused or restored.
- If the clock is correct and the error remains, try another device or a different network.
A good rule of thumb: if the error appears on a single device and the same site loads fine on other devices, the problem is almost certainly local. If the error appears on every device and every network, the problem is on the server side.
Public Wi-Fi sometimes deserves a mention. Portals that intercept traffic, or a router with a broken time setting, can occasionally produce certificate warnings. If the warning disappears on mobile data, the network was the cause, and you should avoid entering sensitive information on that network until you understand why.
Step 2: Confirm the certificate dates from outside
If other devices see the same error, confirm the dates on the live server. You can do this with a browser or with OpenSSL.
In the browser, click the warning details or the padlock icon, open the certificate viewer and read Valid from and Valid to. Compare the "to" date with today's date.
With OpenSSL, run:
echo | openssl s_client -connect www.example.com:443 -servername www.example.com 2>/dev/null | openssl x509 -noout -dates -subject
The output shows notBefore and notAfter. If notAfter is in the past, the certificate has expired. If notBefore is in the future, the certificate is not yet valid, which usually means a wrong clock on the server or an issue with how the certificate was issued.
You can also ask OpenSSL directly whether the certificate will still be valid in a given number of seconds:
echo | openssl s_client -connect www.example.com:443 -servername www.example.com 2>/dev/null | openssl x509 -noout -checkend 2592000
This prints whether the certificate will expire within the next 30 days. It is a handy check to put into a monitoring script.
Step 3: Check the intermediate certificates too
If the leaf dates look fine and visitors still get the error, an intermediate certificate in the chain may be out of date. This often happens when a server keeps an old CA bundle after the certificate was renewed. Run openssl s_client with -showcerts and look at each certificate in the chain. Save each block to a file and read the dates with openssl x509 -noout -dates -in file.pem. For the full method of reading and rebuilding a chain, see the walkthrough on verifying the chain.
It is also worth knowing that a missing or untrusted issuer produces a different message, usually shown as NET::ERR_CERT_AUTHORITY_INVALID. If your symptoms look more like that, read the guide to fixing ERR_CERT_AUTHORITY_INVALID instead of chasing dates.
Step 4: Renew and install the certificate
If the certificate has expired, you need a new one. The exact steps depend on how you obtained it, but the shape is the same.
- Decide whether you can reuse the key. Many administrators generate a new private key and CSR with each renewal. If you do, follow good practice for creating a CSR and private key safely, keep the key file private and do not email it.
- Request or reissue the certificate. Do this in your provider's dashboard, or let your ACME client request it. Validation usually requires you to prove control of the domain, by a DNS record, a file on the site or an email address.
- Download the leaf and the intermediate bundle. Make sure you take the current intermediates, not the ones from last year.
- Install them in the right places. Put the certificate and intermediates in the web server, control panel or load balancer, and keep the private key where it belongs.
- Reload the service. Many servers keep the old certificate in memory until they are reloaded or restarted.
- Test from outside. Use OpenSSL and a browser on another network, and confirm the new
notAfterdate and that the chain is complete.
If you need to know the shape of automatic issuance, the ACME protocol in RFC 8555 describes how clients prove domain control and fetch certificates, and Let's Encrypt explains it in plain terms.
A worked example
Imagine a small studio runs portfolio.example.com on a virtual server. On Monday morning a client emails a screenshot of ERR_CERT_DATE_INVALID.
- The owner first opens the site on a phone using mobile data. The same warning appears, so it is not the client's clock.
- The owner runs the OpenSSL command and sees
notAfter=a date three days ago. The certificate has expired. - The renewal had been set up to run automatically, so the owner checks the renewal log. The last attempt failed because a change to the web server configuration had blocked the validation request.
- The owner restores the validation path, runs the renewal again and the new certificate is issued.
- The web server still shows the old date when tested, so the owner reloads the service. After that,
notAfteris months in the future. - The owner tests from the phone again, checks the chain with OpenSSL, and replies to the client with a short note that the issue is fixed.
- Finally, the owner adds a monitoring check that warns 30 days before expiry, so the next problem is caught before any visitor sees it.
Here the certificate itself was fine; the failure was in the renewal and the reload.
Typical causes at a glance
| Cause | How it shows up | Fix |
|---|---|---|
| Visitor's clock is wrong | Fails on one device only, other devices load the site | Enable automatic date, time and time zone |
| Leaf certificate expired | Fails everywhere, notAfter is in the past |
Renew, install and reload |
| Certificate not yet valid | notBefore is in the future |
Check the server clock and re-issue if needed |
| Intermediate expired or outdated | Leaf dates fine, chain has an old bundle | Replace the whole CA bundle with the current one |
| Renewed but old certificate still served | Dates unchanged after renewal | Reload the service, check proxies, CDN and virtual hosts |
| Automatic renewal failed silently | Expiry arrives with no warning | Fix validation, add monitoring and alerts |
| Different certificate on another hostname | Some subdomains fail, others work | Install or renew each hostname's certificate |
Preventing the error next time
Most date errors are avoidable. A few habits make them rare.
- Know where each certificate lives. Keep a simple list of domains, subdomains, the place each certificate is installed and its expiry date.
- Monitor expiry. A scheduled check with the
-checkendoption or an uptime monitor that watches certificate dates can send an alert weeks ahead. - Do not trust automation blindly. Automatic renewal is helpful, but it can fail if DNS records, firewall rules or server configuration change. Read the renewal logs from time to time.
- Renew early. Do not wait for the last day. A renewal started with several weeks left gives you time to fix surprises.
- Reload after renewal. Add a deploy hook or a documented step so the web server reads the new files.
- Keep your server clock correct. Use network time synchronisation on servers, because wrong server time can create certificates that appear not yet valid and breaks many other things as well.
- Remember that validity periods change. The maximum lifetime of public certificates has been getting shorter over the years, so a renewal calendar that assumed a long period may be out of date. Always trust the dates in the certificate rather than memory.
Limits and what to watch for
- Do not teach visitors to click through. The "proceed anyway" link exists for developers and special cases. A site that regularly asks visitors to ignore a warning trains them to ignore real attacks.
- Do not change the date on a device to make a site work. Moving the clock back to when the certificate was valid may break other apps, sign-in codes and other certificates.
- A date fix does not fix everything. After you solve the dates, a name mismatch, a missing intermediate or a mixed-content problem may still be waiting.
- Check every environment. Staging sites, admin panels, mail servers and APIs under the same domain may use separate certificates with separate expiry dates.
- Some clients are strict about time. Mobile apps, IoT devices and embedded systems may have unreliable clocks. If only those devices fail, check their time source first.
- Allow time for propagation. If a CDN or load balancer sits in front of your server, it may need a few minutes to serve a new certificate, so test again before concluding that the change failed.
Summary
ERR_CERT_DATE_INVALID appears when the current time on the device falls outside the validity period of a certificate in the chain. First decide whether the clock is wrong by testing on another device and network. If the error is everywhere, read the notBefore and notAfter dates of the leaf and the intermediates, then renew the certificate, install the full current chain, reload the service and test again from outside. To stop the problem returning, keep an inventory of certificates, monitor expiry dates and check that automatic renewals really succeed.
When you are ready to arrange certificates for your own domains, the SSL certificates page shows the options available.
Frequently asked questions
What does ERR_CERT_DATE_INVALID mean?
The browser compared the current date and time on the device with the validity period inside a certificate in the chain and found that the date falls outside it. Either the certificate has expired, is not valid yet, or the device clock is wrong.
How do I know whether the problem is my computer or the website?
Open the same site on another device or network. If it fails everywhere, the certificate on the server is the cause. If it only fails on one device, check that device's date, time and time zone first.
Can I just click proceed and ignore the warning?
As a visitor you can on many sites, but you should not make a habit of it, and you should never enter passwords or payment details on a page with an unresolved certificate warning. As a site owner, the warning needs to be fixed at the source.
My certificate renewed automatically, so why is the old date still shown?
The new certificate may not have been loaded by the web server, a proxy or a CDN in front of it may be serving the old one, or a different virtual host may be answering. Reload the service and test from outside.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need an SSL certificate?
Pick the certificate type that fits your site and see the price before you check out.
SSL from $14.99
See SSL certificatesKeep reading

SSL Guides
How to Verify an SSL Certificate Chain
A certificate can look valid in one browser and fail in another because the chain is incomplete. This guide shows how to read, test and repair a chain.
10 min read

SSL Guides
How to Fix NET::ERR_CERT_AUTHORITY_INVALID
The browser does not trust the issuer of the certificate. Causes include self-signed certificates, a missing intermediate, a rewritten connection or an outdated device.
10 min read

SSL Guides
How to Generate a CSR and Private Key Securely
A practical guide to generating a certificate signing request and private key, including key choices, file permissions, name fields and checks before you submit.
10 min read