Last active
December 2, 2018 22:24
-
-
Save peteroid/b87ea76c082e571508c4fa9aa9822710 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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