Skip to main content

SSL CertBot with Lets Encrypt

This runs inusing snap."snap". You will need to install that first (if you don't have it already).

See if you have snap
    `snap`snap`    or `snap -v`v`
   

Go here to follow a the process of installing certbot on your own. 

They keep this updated. 

Install a certificate bot REPO for "lets encrypt"
    Go to: https://certbot.eff.org/lets-encrypt/

 

Or... follow these steps.

If, you are installing in linux dabian based.

Make sure Certbot is not installed first: 

sudo apt-get remove certbot
Install Certbot

Run this command on the command line on the machine to install Certbot.

sudo snap install --classic certbot
Prepare the Certbot command

Execute the following instruction on the command line on the machine to ensure that the certbot command can be run.

sudo ln -s /snap/bin/certbot /usr/bin/certbot
Run Certbot

Run this command to get a certificate and have Certbot edit your nginx configuration automatically to serve it, turning on HTTPS access in a single step.

sudo certbot --nginx
Test automatic renewal

The Certbot packages on your system come with a cron job or systemd timer that will renew your certificates automatically before they expire. You will not need to run Certbot again, unless you change your configuration. You can test automatic renewal for your certificates by running this command:

sudo certbot renew --dry-run

If you get no errors... your done! Woot woot!

 



To renew certs you already have:

Run Auto Cert
   

sudo certbot --nginx

    
Test Automatic renewal

sudo certbot renew --dry-run