Certificate Expiration Playbook
TLS certificate expired causing connection failures. The embarrassing outage that's 100% preventable and still happens to the best teams. Users see scary browser warnings, API integrations break, and trust erodes.
CERTIFICATE EXPIRY SYMPTOMS
- • Browser showing "Your connection is not private" / NET::ERR_CERT_DATE_INVALID
- • API clients receiving SSL handshake failures
- • Mobile apps refusing connections
- • Third-party integrations failing with SSL errors
- • Internal service-to-service communication broken
First 5 Minutes: Certificate Emergency Response
Confirm certificate expiration
Run: openssl s_client -connect yourdomain.com:443 | openssl x509 -noout -dates. Check 'notAfter' field.
Identify all affected certificates
Is it just one domain? Wildcard cert? Multiple certs? Internal and external certs?
Check auto-renewal status
If using Let's Encrypt/ACM: why didn't auto-renewal work? Check cert manager logs, DNS validation.
Begin certificate renewal
Start the fastest renewal path: Let's Encrypt CLI, AWS ACM re-issue, or manual CA process.
Deploy renewed certificate
Update load balancers, web servers, CDN, and any service using the cert. Restart services if needed.
Certificate Renewal by Provider
Let's Encrypt / Certbot
# Check certificate status sudo certbot certificates # Force renewal sudo certbot renew --force-renewal # Renew specific domain sudo certbot certonly --nginx -d yourdomain.com -d www.yourdomain.com # Restart web server sudo systemctl restart nginx # or sudo systemctl restart apache2 # Verify new cert echo | openssl s_client -connect yourdomain.com:443 2>/dev/null | openssl x509 -noout -dates
Typical time to fix: 2-5 minutes if certbot is working. 15-30 minutes if DNS validation issues.
AWS Certificate Manager (ACM)
ACM should auto-renew. If it failed:
- • Check ACM console for renewal status and error messages
- • DNS validation: verify CNAME records still exist in DNS
- • Email validation: check domain admin email for validation request
- • Re-request certificate if renewal permanently failed
- • Associate new cert with ALB/CloudFront distribution
Commercial CA (DigiCert, Sectigo, etc.)
Manual renewal process - this takes longer:
- • Generate new CSR from your server
- • Submit renewal through CA portal
- • Complete domain validation (DNS, file, or email)
- • Download and install new certificate + chain
- • Restart web servers and verify
Timeline: 15 minutes to several hours depending on CA response time.
Common Reasons Auto-Renewal Failed
DNS Validation Issues
- • CNAME validation records were deleted
- • DNS provider changed or migrated
- • DNS propagation delays
- • DNSSEC blocking validation queries
Infrastructure Issues
- • Cert manager pod/service down
- • Permissions changed on cert storage
- • Rate limiting by certificate authority
- • Server firewall blocking port 80 (HTTP challenge)
Configuration Drift
- • Domain added without cert coverage
- • Wildcard cert doesn't cover new subdomain
- • Renewal job disabled or schedule broken
- • Cert manager version incompatibility
Human Error
- • Manual cert - nobody tracked expiration
- • Payment lapsed on commercial CA account
- • Renewal email went to wrong person
- • "Someone else's job" - ownership unclear
Where to Check for Expired Certs
Load Balancers (ALB, NLB, HAProxy)
Primary TLS termination point. This is usually where user-facing certs live.
CDN Providers (CloudFront, Fastly, Cloudflare)
CDN edge certs expire independently. May need separate renewal.
Web Servers (Nginx, Apache)
Direct SSL termination on application servers.
Internal Service Mesh (Istio, Linkerd)
mTLS certificates for service-to-service communication.
API Gateways
Custom domain certificates on API Gateway endpoints.
Database Connections
SSL certificates for encrypted database connections.
Email Servers
STARTTLS certificates for email delivery.
Prevention: Never Let This Happen Again
Monitoring & Alerting
- • Alert at 30 days: Informational - renewal should happen automatically
- • Alert at 14 days: Warning - investigate why auto-renewal hasn't fired
- • Alert at 7 days: Critical - manual intervention required
- • Alert at 3 days: Emergency - drop everything and fix this
- • Use tools like cert-manager, Prometheus blackbox exporter, or Datadog SSL monitoring
Process Improvements
- • Maintain a certificate inventory with expiration dates
- • Use automated certificate management (cert-manager, ACM)
- • Assign clear ownership for every certificate
- • Include cert checks in quarterly security reviews
- • Use short-lived certificates where possible (90-day Let's Encrypt)