Skip to content

Instantly share code, notes, and snippets.

@lcdss
Last active April 27, 2020 13:54
Show Gist options
  • Save lcdss/4c8ff65483ab928b9df38ea9836c8608 to your computer and use it in GitHub Desktop.
Save lcdss/4c8ff65483ab928b9df38ea9836c8608 to your computer and use it in GitHub Desktop.
Certbot Example
#!/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