Skip to content

Instantly share code, notes, and snippets.

@li0nel
Created July 12, 2018 08:03
Show Gist options
  • Save li0nel/07ae6dd611213baa9950caac46335d05 to your computer and use it in GitHub Desktop.
Save li0nel/07ae6dd611213baa9950caac46335d05 to your computer and use it in GitHub Desktop.
Execute Certbot
# Use Let's Encrypt certbot to order a free certificate
certbot certonly --non-interactive --manual \
--manual-auth-hook "./auth-hook.sh UPSERT your_domain.com" \
--manual-cleanup-hook "./auth-hook.sh DELETE your_domain.com" \
--preferred-challenge dns \
--config-dir "./letsencrypt" \
--work-dir "./letsencrypt" \
--logs-dir "./letsencrypt" \
--agree-tos \
--manual-public-ip-logging-ok \
--domains your_domain.com,www.your_domain.com \
--email [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment