Last active
January 19, 2024 19:11
-
-
Save timc1/1fc1cdf06bc2676803bc1dc51632eb11 to your computer and use it in GitHub Desktop.
Renew certbot certificate on an nginx server
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
// Turn off server | |
sudo service nginx stop | |
// Renew certbot | |
certbot-auto renew —debug | |
// If failed, run this, then rerun renew command | |
sudo /opt/eff.org/certbot/venv/local/bin/pip install cryptography interface | |
// If failed | |
rm -rf /opt/eff.org/certbot/ | |
wget https://dl.eff.org/certbot-auto | |
chmod a+x certbot-auto | |
sudo ./certbot-auto certonly --standalone -d example.com --no-bootstrap |
ssh -i avrc.pem [email protected]
sudo ./certbot-auto certonly --standalone -d avresources.co -d www.avresources.co --no-bootstrap
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo ./certbot-auto certonly --standalone -d example.co -d www.example.co --no-bootstrap