`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.
More on TLS and certificate errors
`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`.BeginnerNode.js app logs `Error: unable to verify the first certificate` calling an internal API.Intermediate