Help Renew Let's Encrypt Certificate
Can anyone help me please. I need to renew my certificate but I have no idea how to do it.
I'm running OpenLiteSpeed on Ubuntu 22.04 LTS.
Thank you.
2 Replies
try this step by step.. Replace example.com with your actual domain name.
sudo apt-get update
sudo apt-get install certbot python3-certbot-apache
sudo systemctl stop openlitespeed
sudo certbot renew --cert-name example.com --preferred-challenges http --deploy-hook "systemctl start openlitespeed"
sudo systemctl start openlitespeed
Let's Encrypt certificates are valid for 90 days. To automate the renewal process, you can create a cron job that attempts to renew the certificate periodically.
Open the crontab editor
sudo crontab -e
0 */12 * * * systemctl stop openlitespeed && certbot renew --quiet --cert-name example.com --preferred-challenges http --deploy-hook "systemctl start openlitespeed" && systemctl start openlitespeed