Skip to content

Instantly share code, notes, and snippets.

@artcommacode
Forked from li0nel/certbot
Created August 16, 2019 11:59
Show Gist options
  • Save artcommacode/28dc5d3eac67bf26107044c7fc21646a to your computer and use it in GitHub Desktop.
Save artcommacode/28dc5d3eac67bf26107044c7fc21646a 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 your@email.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment