Last active
December 17, 2017 19:17
-
-
Save fredriks/a6600524ad0dc47c1df13794ad0196ef to your computer and use it in GitHub Desktop.
Certbot on Amazon Linux
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
#!/usr/bin/env sh | |
wget https://dl.eff.org/certbot-auto | |
chmod +x certbot-auto | |
unset PYTHON_INSTALL_LAYOUT | |
pip install virtualenv --upgrade --user | |
pip install zope.interface --upgrade --user | |
# Remove old installation | |
rm -rf ~/.local/share/letsencrypt | |
sudo rm -rf /opt/eff.org/certbot | |
# Create swap file for space requirements (for low memory instances) | |
sudo fallocate -l 1G /tmp/swapfile | |
sudo chmod 600 /tmp/swapfile | |
sudo mkswap /tmp/swapfile | |
sudo swapon /tmp/swapfile | |
# Update letsencrypt | |
./certbot-auto -v --debug | |
# Remove swap file | |
sudo swapoff /tmp/swapfile | |
sudo rm /tmp/swapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment