Skip to content

Instantly share code, notes, and snippets.

@timc1
Last active January 19, 2024 19:11
Show Gist options
  • Save timc1/1fc1cdf06bc2676803bc1dc51632eb11 to your computer and use it in GitHub Desktop.
Save timc1/1fc1cdf06bc2676803bc1dc51632eb11 to your computer and use it in GitHub Desktop.
Renew certbot certificate on an nginx server
// 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
@timc1
Copy link
Author

timc1 commented Apr 17, 2023

ssh -i avrc.pem ec2-user@avresources.co

@timc1
Copy link
Author

timc1 commented Oct 17, 2023

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