Interview Prep/Networking/TLS and certificate errors

Certificates renewed by certbot, but browsers still show the old expiry date.

BeginnerTroubleshootingTLS and certificate errors
Answer

Likely causes → nginx/Apache wasn't reloaded so the old cert stays in memory, the server config points at a copied file rather than /etc/letsencrypt/live/..., or a CDN/LB in front has its own certificate.

Diagnose →

certbot certificates
grep -R ssl_certificate /etc/nginx/
echo | openssl s_client -connect host:443 -servername host 2>/dev/null | openssl x509 -noout -dates

Fix → systemctl reload nginx, point config at the live/ symlinks, and add a deploy hook: certbot renew --deploy-hook "systemctl reload nginx".

Prevent → Monitor the served expiry date, not the file on disk.

All Networking questions Roadmap: Networking for DevOps

More on TLS and certificate errors