Skip to content

Instantly share code, notes, and snippets.

@franckweb
Created October 27, 2022 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franckweb/fe10087c381744418da8aa3e8de09578 to your computer and use it in GitHub Desktop.
Save franckweb/fe10087c381744418da8aa3e8de09578 to your computer and use it in GitHub Desktop.
Renew Lets Encrypt with certbot
#
# renews lets encrypt on a running server
# note: not ideal as it stops/renews nginx for a few millisecs
#
sudo certbot certonly --standalone --pre-hook "service nginx stop" --post-hook "service nginx restart" -d mydomain.com -d www.mydomain.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment