Last active
April 27, 2020 13:54
-
-
Save lcdss/4c8ff65483ab928b9df38ea9836c8608 to your computer and use it in GitHub Desktop.
Certbot Example
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
#!/bash/bin | |
# quiet, non-interactive | |
./certbot certonly --standalone --quiet \ | |
--pre-hook "sudo service nginx stop" \ | |
--post-hook "sudo service nginx start" \ | |
--rsa-key-size 4096 | |
--email [email protected] \ | |
# --cert-name # Defaults to the first domain name | |
-d domain.com -d domain.com xxx.domain.com \ | |
# --domains domain.com,xxx.domain.com \ | |
# --keep-until-expiring \ | |
# --force-renewal \ | |
# --debug -v \ | |
# --expand \ | |
--agree-tos | |
# --dry-run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment