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.
Fix it
- 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). - 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. - Update copies elsewhere: load balancers, CDNs, API gateways and Kubernetes secrets often hold their own copy. Check each public host name.
- Serve the full chain (the certificate plus intermediates), or some clients will still fail after renewal.
- 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.
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.
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
- SSL certificate checker: Expiry date, issuer, chain and host name match.
Related reading
- NET::ERR_CERT_AUTHORITY_INVALID: how to fix it: Fix NET::ERR_CERT_AUTHORITY_INVALID: self-signed certificates, missing intermediates and antivirus interception, with openssl commands to verify the chain.
- "Your connection is not private": how to fix it: Fix "Your connection is not private" (NET::ERR_CERT_*): expired or mismatched certificates, wrong device clocks, missing intermediates and Wi-Fi portals.
- NET::ERR_CERT_COMMON_NAME_INVALID: how to fix it: Fix NET::ERR_CERT_COMMON_NAME_INVALID: certificates missing www or a subdomain, wrong SNI defaults and CDN misconfiguration, with commands to check SANs.
- NET::ERR_CERT_REVOKED: how to fix it: Fix NET::ERR_CERT_REVOKED: why a certificate authority revokes certificates, how browsers learn about it, and how site owners replace a revoked certificate.
- ERR_BAD_SSL_CLIENT_AUTH_CERT: how to fix it: Fix ERR_BAD_SSL_CLIENT_AUTH_CERT: client certificates that are expired, untrusted or not selected, mutual TLS settings and corporate device certificates.
- ERR_BLOCKED_BY_CLIENT: how to fix it: Fix net::ERR_BLOCKED_BY_CLIENT: ad blockers and privacy extensions blocking scripts, images and API calls, and how developers avoid false blocks.
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.