Interview Prep/Networking/TLS and certificate errors

`curl: (60) SSL certificate problem: certificate has expired`

BeginnerTroubleshootingTLS and certificate errors
Answer

Likely causes → The leaf certificate passed its notAfter, an intermediate in the served chain expired, or the client clock is wrong.

Diagnose →

echo | openssl s_client -connect app.example.com:443 -servername app.example.com 2>/dev/null \
  | openssl x509 -noout -subject -issuer -dates
date -u; timedatectl

Fix → Renew and deploy the certificate, then reload the server (nginx -s reload). If the client clock is off, fix NTP (chronyc tracking).

Prevent → Automate renewal (ACME/cert-manager/ACM) and alert at 30 and 14 days before expiry from an external probe.

All Networking questions Roadmap: Networking for DevOps

More on TLS and certificate errors