Setup nginx:
- Download certbot:
[cc lang=”bash”]
$ wget https://dl.eff.org/certbot-auto
$ chmod a+x certbot-auto[/cc] - Generate Certificates:
[cc lang=”bash”]sudo ./certbot-auto –debug -v –server https://acme-v01.api.letsencrypt.org/directory certonly -d YOUR_WEBSITE_HERE[/cc] - Setup nginx and map to both, privkey + fullchain
Auto Renew:
[cc lang=”bash”]
sudo crontab -e
0 1,13 * * * /home/ec2-user/certbot-auto renew
[/cc]