Skip to content

Instantly share code, notes, and snippets.

@ashutoshpw
Created July 26, 2019 00:04
Show Gist options
  • Save ashutoshpw/4ad45b32301a38fffbf3b2c2c9e42f5e to your computer and use it in GitHub Desktop.
Save ashutoshpw/4ad45b32301a38fffbf3b2c2c9e42f5e to your computer and use it in GitHub Desktop.
Renew SSL using Certbot
DOMAIN_NAME="domain.com"
sudo certbot --authenticator standalone --installer nginx -d $DOMAIN_NAME --pre-hook "service nginx stop" --post-hook "service nginx start"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment