TLS/SSL · Certificate Not Yet Valid

TLS/SSL Error Code CERT_NOT_YET_VALID

The certificate's validity period starts in the future.

errorLast verified 2026-11-10Node.js TLS / OpenSSL
Quick answer

The certificate's validity period starts in the future.

CodeCERT_NOT_YET_VALID
ProductTLS/SSL
Company / originIETF · International standard
CategoryProtocols & Standards
Platform / versionsTLS 1.2, TLS 1.3 · OpenSSL / Node.js clients and servers
Severityerror
Official sourceNode.js TLS / OpenSSL ↗
Last verified2026-11-10

What does TLS/SSL error CERT_NOT_YET_VALID mean?

CERT_NOT_YET_VALID means the certificate's notBefore date is later than the current time on the client. The most common cause is a client clock that is behind, but a misissued certificate with a future start date produces the same error.

Common causes

  • The client clock is behind because NTP is disabled or the time zone is wrong.
  • The certificate was issued with a notBefore date in the future.
  • A test or staging certificate was deployed to production.

How to fix it

  1. Step 1

    Synchronize the client clock with NTP and retry.

  2. Step 2

    Inspect the certificate dates with openssl x509 -noout -dates.

  3. Step 3

    If the certificate itself starts in the future, reissue or replace it.

When to escalate

Before you escalate: If the certificate looks valid in a browser but your client still fails, compare the trust store, SNI hostname, and TLS versions on both sides. Capture the openssl s_client output and the client error, then contact the certificate owner or platform support.

Related codes

CodeNameWhat it means
CERT_HAS_EXPIREDCERT_HAS_EXPIREDThe server certificate is past its expiration date.
DEPTH_ZERO_SELF_SIGNED_CERTDEPTH_ZERO_SELF_SIGNED_CERTThe server presented a self-signed certificate.
ERR_CERT_AUTHORITY_INVALIDERR_CERT_AUTHORITY_INVALIDThe certificate was issued by an untrusted authority.
ERR_CERT_COMMON_NAME_INVALIDERR_CERT_COMMON_NAME_INVALIDThe certificate's name does not match the requested host.
ERR_TLS_CERT_ALTNAME_INVALIDERR_TLS_CERT_ALTNAME_INVALIDThe certificate does not cover the hostname you requested.

Source & verification

This page was checked against Node.js TLS / OpenSSL on 2026-11-10. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.

Open Error Codes is independent and not affiliated with IETF. Always confirm destructive or security-sensitive steps with the official documentation.