A client fails with `certificate is not yet valid` right after a new certificate was issued.
AdvancedTroubleshootingTLS and certificate errors
Answer
Likely causes → Client clock is behind (VMs restored from snapshot, IoT devices, containers on a host without NTP), or the CA backdates less than the skew.
Diagnose →
date -u; chronyc tracking
openssl x509 -in cert.pem -noout -startdate
Fix → Fix time sync (systemctl enable --now chronyd, chronyc makestep).
Prevent → Monitor clock offset on every host; alert above 1 s.
More on TLS and certificate errors
`curl: (60) SSL certificate problem: certificate has expired`Beginner`curl: (60) SSL certificate problem: unable to get local issuer certificate`Beginner`SSL: no alternative certificate subject name matches target host name 'api.example.com'`BeginnerSome clients get the wrong certificate (another site's) from a shared IP.Intermediate`SSL routines::sslv3 alert handshake failure` from `openssl` or curl.IntermediatePython `requests` fails with `SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain`.Beginner