Skip to content

Instantly share code, notes, and snippets.

@peteroid
Last active December 2, 2018 22:24
Show Gist options
  • Save peteroid/b87ea76c082e571508c4fa9aa9822710 to your computer and use it in GitHub Desktop.
Save peteroid/b87ea76c082e571508c4fa9aa9822710 to your computer and use it in GitHub Desktop.
# as root
sudo -s
# get certbot
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
# since AMI supports is experimental, need to add --debug flag
./certbot-auto --debug
# https://github.com/certbot/certbot/issues/2823
unset PYTHON_INSTALL_LAYOUT
/root/.local/share/letsencrypt/bin/pip install --upgrade certbot
# get certificate
# https://gist.github.com/davestevens/c9e437afbb41c1d5c3ab
# for pm2 working with 80/443
# sudo apt-get install authbind
# sudo touch /etc/authbind/byport/80
# sudo chown %user% /etc/authbind/byport/80
# sudo chmod 755 /etc/authbind/byport/80
# authbind --deep pm2 update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment