Skip to main content

Let's Encrypt (TLS)

tip

The Certbot authors recommend installing through snap as some distros' versions from APT tend to fall out-of-date; see https://eff-certbot.readthedocs.io/en/latest/install.html#snap-recommended for more.

Install Snapd:

sudo apt-get install snapd

Install Certbot:

sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot

Add symlink:

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

Follow the prompts to create TLS certificates for your domain(s). If you don't already have NGINX up, you can use standalone mode.

sudo certbot certonly

# Or if you wish not to use the standalone mode but the Nginx plugin:
sudo certbot --nginx -d domain.tld