Skip to content

Instantly share code, notes, and snippets.

@josuecau
Created May 19, 2018 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josuecau/bc99e587ee85f0fa1e18d1cda40b600e to your computer and use it in GitHub Desktop.
Save josuecau/bc99e587ee85f0fa1e18d1cda40b600e to your computer and use it in GitHub Desktop.
Certbot with Docker and Cloudflare DNS Authenticator plugin
#!/usr/bin/env bash
#
# Certbot with Docker and Cloudflare DNS Authenticator plugin
# https://certbot.eff.org
# https://github.com/certbot/certbot/tree/master/certbot-dns-cloudflare
docker run -it --rm --name certbot \
-v '/etc/letsencrypt:/etc/letsencrypt' \
-v '/etc/cloudflare.conf:/etc/cloudflare.conf' \
-v '/var/lib/letsencrypt:/var/lib/letsencrypt' \
-v '/var/log/letsencrypt:/var/log/letsencrypt' \
certbot/dns-cloudflare \
--dns-cloudflare \
--dns-cloudflare-credentials /etc/cloudflare.conf \
"$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment