check_latest_version && sudo apt update && sudo apt upgrade -y
Verify certificate dates:
openssl x509 -in cert.pem -text -noout | grep "Not After"
echo | openssl s_client -connect domain:443 2>/dev/null | openssl x509 -noout -dates
Get new certificate:
sudo certbot renew
sudo certbot certonly --webroot -w /var/www/html -d domain.com
sudo systemctl reload nginx
Verify renewal is working:
sudo certbot renew --dry-run
crontab -l | grep certbot
systemctl status certbot.timer
SSL certificate is past expiration date, causing browser warnings and connection failures.
curl -I https://domain.com
openssl s_client -connect domain:443
certbot certificates