Created
October 27, 2022 23:07
-
-
Save franckweb/fe10087c381744418da8aa3e8de09578 to your computer and use it in GitHub Desktop.
Renew Lets Encrypt with certbot
This file contains hidden or 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
# | |
# 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