Interview Prep/Networking/TLS, Certificates & Network Security

How do you rotate a certificate with zero downtime?

IntermediateProductionTLS, Certificates & Network Security
Answer

Issue the new certificate before the old one expires, deploy it so servers load it without dropping connections (nginx -s reload or systemctl reload haproxy, which gracefully restart workers; ALB listeners switch atomically), verify the live endpoint, then revoke or retire the old one.

nginx -t && nginx -s reload
echo | openssl s_client -connect app.example.com:443 -servername app.example.com 2>/dev/null | openssl x509 -noout -dates -serial

For clients that pin or trust specific CAs, overlap both chains first.

All Networking questions Roadmap: Networking for DevOps

More on TLS, Certificates & Network Security