Updated: 19-01-2018 - bug prevents requesting cert, added webroot method which still works

Customization

You can customize the guide by altering the desired website name in the text box below, the guide will use that instead of the example.

Website:

Intro

Easily setup HTTPS on your websites by using Letsencrypt with Apache2 on Ubuntu 16.04!

Quick-guide

Add the cerbot repository

sudo add-apt-repository ppa:certbot/certbot

Update

sudo apt-get update

Install certbot

sudo apt-get install python-certbot-apache -y

sudo certbot --apache -d #@WEBSITE@#

^above command no longer functioning (19-01-2018), will be fixed in future.

However, there is another way to do this: webroot. You point certbot at your sites folder

/var/www/#@WEBSITE@#

You will have to answer a couple of questions (like do you want to force https) and it will be done!

certbot --authenticator webroot --installer apache -d #@WEBSITE@#

Setup renewal

sudo crontab -e

Add the following and save:

0 * * * * /usr/bin/certbot renew --quiet

This runs the ‘certbot renew –quit’ command every 0th minute, aka every hour. You can change the time here.