Post Detail

Renew SSL Certificate using certbot.

/static/assets/images/blog-detail.jpg

Share

Renew SSL Certificate using certbot

In order to renew your SSL certificate you need to run the following command on your Debian based Linux computer:

sudo certbot certonly --force-renew --cert-name <YOUR DOMAIN>

 

In the above example <YOUR DOMAIN> is something like www.example.com

I would highly recommend to setup a cronjob on your Linux computer to run everyday. This way as soon as your SSL certificate expires it will renew it self automatically.

Depending upon you setup the above command can ask you the following questions (at least in my case while running Ubuntu Server):

 

How would you like to authenticate with the ACME CA?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1: Nginx Web Server plugin (nginx)

2: Spin up a temporary webserver (standalone)

3: Place files in webroot drectory (webroot)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 

Since I have nginx installed, I selected option 1, but if you don't have nginx installed you can still choose option 1. And after the certificate is installed, certbot will give you the path where it has placed the files on your computer.

Quick Links:

You may also like...