Skip to content
SSL and certificates3 min read

NET::ERR_CERT_DATE_INVALID: an expired certificate or a wrong clock

NET::ERR_CERT_DATE_INVALID

Short answer

NET::ERR_CERT_DATE_INVALID means the SSL certificate the site presented is outside its validity period according to your device's clock: either it really expired and wasn't renewed, or the device's date is wrong. If many devices see it, the problem is the site, and the fix is renewing the certificate on the server.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Common causes
  2. How to fix it
  3. Prevention
  4. On ArabyHost

This code usually appears inside the “Your connection is not private” page. Every SSL certificate has a start date and an end date, and the browser compares them with your device’s clock. If now falls outside that window, the browser refuses the connection. So there are two main causes: a certificate that really expired on the site, or a wrong clock on the visitor’s device.

Common causes

  • Automatic renewal failed, so the certificate expired on the server.
  • A paid or manually installed certificate nobody renewed in time.
  • A wrong device date, from a weak BIOS battery, a manually changed date or the wrong time zone.
  • An old device or OS whose root certificates were never updated, so the chain looks expired to it.
  • Antivirus intercepting HTTPS with its own expired certificate.

How to fix it

If you’re a visitor

  1. Fix the date and time: turn on automatic time and time zone in system settings, then reopen the browser.
  2. Update the OS and browser, especially on older devices.
  3. Try another device or network to see whether it’s just you.
  4. Don’t bypass the warning on login or payment pages; let the site owner know.

If you own the site

  1. Check when the certificate expires:

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

    notAfter is the expiry date.

  2. Renew it: in cPanel open Security » SSL/TLS Status, make sure the domain and www are selected, then click Run AutoSSL. Check the AutoSSL log on the same page if it fails; causes are covered in AutoSSL failed.

  3. Remove an expired manual certificate under Security » SSL/TLS » Manage SSL sites, then run AutoSSL so a free, self-renewing certificate replaces it.

  4. Don’t block the validation path: if .htaccess redirects or protects every URL, exclude /.well-known/ before your rules:

    RewriteEngine On
    RewriteCond %{REQUEST_URI} !^/\.well-known/
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  5. Check any CAA records and make sure they allow the authority that issues your certificate.

  6. Behind Cloudflare, Cloudflare handles the edge certificate visitors see; an expired certificate on your origin shows up as error 526 instead.

Prevention

  • Rely on AutoSSL rather than manual certificates; Let’s Encrypt certificates are short-lived by design and meant to renew automatically.
  • Keep the domain pointed at the server, because every renewal validates it again.
  • Don’t ignore renewal failure notices; they usually arrive before the certificate runs out, leaving time to fix things.

On ArabyHost

AutoSSL certificates are issued free and automatically as soon as the domain points to the server, and they keep renewing as long as the domain points there and the validation path is reachable. Track their status under SSL/TLS Status in cPanel, one click from the Araby Panel, and ask the Araby AI assistant to read the logs and explain any renewal failure. LiteSpeed reads .htaccess just like Apache, so the /.well-known/ exception above works as written.

FAQ

How do I know whether it's my device or the site?

Make sure your date and time are correct, then open the site on another device. If devices with correct clocks all show the error, the site's certificate has expired.

Should I click through the warning?

Not on login or payment pages. The warning means the browser can't vouch for the connection; wait for the owner to renew the certificate.

Why did the certificate expire if AutoSSL is automatic?

Renewal requires validating the domain. If the domain stopped pointing to the server, .htaccess blocked the validation path, or a CAA record excludes the issuer, renewal fails and the certificate runs out.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.