Setting up Lets encrypt
These are some quick notes from installing Let’s encrypt on a Ubuntu server.
For anyone trying to do this I would recomend the Digital Ocean artical on this. DigitalOcean Let’s Encrypt
Install applictions
apt install python-certbot-nginx letsencrypt
Modify nginx to add virtual host
/etc/nginx/sites-enabled/default
server_name *.invoke.coffee;
Run Certbot to generate certificate
certbot --nginx -d www2.invoke.coffee
Modify crontab to renew certificates
sudo crontab -e
15 3 * * * /usr/bin/certbot renew --quiet