TROUBLESHOOTING
Fix an expired website SSL certificate
When a website certificate expires, the job is to renew it, deploy it to every TLS listener and confirm that visitors receive the replacement.
Find where it fails
The endpoint is serving a certificate past notAfter. Renewal may never have run, or a replacement may never have reached this listener.
Capture the leaf certificate’s validity times and fingerprint from the failing connection. Check the client clock, then compare with the renewal system’s artifact.
Work through the symptoms
The public leaf is expired
Renew or reissue, deploy the certificate chain, reload the actual TLS process and compare the served fingerprint.
A new file exists but public dates are unchanged
Move to the deployment runbook. Identify the CDN, load balancer or ingress that owns the active connection.
Only one device sees an expired date
Compare its clock and presented issuer before changing a healthy public deployment.
Run the checks
openssl s_client -connect www.example.com:443 -servername www.example.com -showcerts </dev/null
# Save the presented leaf as served-leaf.pem, then inspect it:
openssl x509 -in served-leaf.pem -noout -dates -issuer -serial -fingerprint -sha256Save the leaf certificate from the first certificate block as served-leaf.pem. The second command prints its dates, issuer, serial and SHA-256 fingerprint.
Apply the fix
Renew or reissue the expired certificate, deploy it with the required intermediates to each TLS terminator and reload or roll out the consuming service. Reconnect externally and confirm the new fingerprint, future expiry and successful validation.
Confirm the result
Reconnect through the paths that failed. Confirm the replacement fingerprint, future expiry date and successful hostname and chain validation.
Check the deployment details
Inventory the apex, www, API and redirect destinations separately. Check the public edge or load balancer as well as the application server, and keep the old and new fingerprints in the incident record.
Keep it monitored
Check the public expiry date throughout the renewal cycle. Set alerts early enough to issue, distribute, reload and test a replacement, and assign someone to respond.