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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct