SSL ERRORS
certificate is not yet valid: causes and fixes
A certificate’s notBefore date is later than the verification time. Compare the client’s clock with UTC, then inspect the certificate at the reported verification depth.
What it means
The implicated object can be a leaf or a chain member. A clock set too far into the past can cause the same symptom as a genuinely premature certificate deployment. Compare notBefore at the reported verification depth with real UTC time.
What to check
- Keep the verification depth, certificate identity and notBefore value.
- Compare the client clock and time synchronization state with a reliable source.
- Check whether the new deployment differs from a known valid previous certificate.
Test the connection
openssl s_client -connect www.example.com:443 -servername www.example.com \
-verify_hostname www.example.com -verify_return_error </dev/nullRun this OpenSSL 3.x example in a POSIX shell. Keep the hostname, peer address and full verification result with the error report.
How to fix it
- Repair incorrect client time if that is the cause.
- If the intended certificate is genuinely not valid yet, obtain and deploy an appropriate currently valid certificate or follow an approved valid-certificate rollback.
- Inspect issuer-chain validity too, rather than replacing only the leaf automatically.
Check the fix
Repeat verification from the affected runtime and confirm both validity boundaries, hostname and chain trust. Retest the actual served material after any deployment change.
Details worth checking
Check both date fields after the repair. A usable certificate needs a start date in the past and an expiry date in the future, according to a correctly synchronized clock.
Related guides
- Fix an expired website SSL certificate
- Fix SSL errors on one PC
- Repair missing intermediates and client trust differences