Let’s Encrypt + Amazon AMI

Setup nginx:

  1. Download certbot:
    [cc lang=”bash”]
    $ wget https://dl.eff.org/certbot-auto
    $ chmod a+x certbot-auto[/cc]
  2. Generate Certificates:
    [cc lang=”bash”]sudo ./certbot-auto –debug -v –server https://acme-v01.api.letsencrypt.org/directory certonly -d YOUR_WEBSITE_HERE[/cc]
  3. 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]

Source Here