Interview Prep/Networking/TLS and certificate errors

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.

All Networking questions Roadmap: Networking for DevOps

More on TLS and certificate errors