Fix SSL Certificate Expired — Renew & Prevent Downtime
Direct answer
An expired SSL certificate causes browsers to reject HTTPS connections with ERR_CERT_DATE_INVALID. Renew the certificate immediately using certbot renew or your CA dashboard, then install it on the web server and configure automated renewal.
Structured breakdown
Cause
An expired SSL certificate causes browsers to block access to your site. Renew the certificate immediately through your CA or Let's Encrypt, then set up auto-renewal to prevent recurrence.
Fix
- Renew the certificate immediately via your CA dashboard or certbot renew
- Install the renewed certificate on your web server and restart the service
- Set up auto-renewal with certbot or AWS Certificate Manager
Outcome
Certificate is renewed, HTTPS connections work, and auto-renewal prevents future expiration.
Common causes
- Certificate renewal was not automated
- Auto-renewal process failed silently
- DNS validation records were removed or changed
- Renewal emails went to an unmonitored inbox
- Certificate manager service had permissions issues
Fix steps
- 1
Renew the certificate immediately via your CA dashboard or certbot renew
- 2
Install the renewed certificate on your web server and restart the service
- 3
Set up auto-renewal with certbot or AWS Certificate Manager
- 4
Add monitoring alerts for certificates expiring within 30 days
- 5
Verify DNS validation records are in place for domain-validated certificates
Analyze this issue
Paste the issue description, logs, or symptoms into the fix tool to inspect this problem with your own runtime details.
Need more context?
If the standard steps do not resolve the issue, open the fix tool and include the current logs, configuration, and deployment changes.
Open Fix ToolFrequently asked questions
Related technical context
These examples show the commands, logs, and configuration patterns most often used to verify this issue.
Command examples
certbot renew --dry-runopenssl s_client -connect example.com:443 -servername example.com | openssl x509 -noout -datescertbot certificates
Log snippet
NET::ERR_CERT_DATE_INVALID
SSL certificate problem: certificate has expired
Verify return code: 10 (certificate has expired)Config snippet
# Crontab for auto-renewal
0 0 1 * * certbot renew --quiet --post-hook "systemctl reload nginx"