Created
May 19, 2018 08:25
-
-
Save josuecau/bc99e587ee85f0fa1e18d1cda40b600e to your computer and use it in GitHub Desktop.
Certbot with Docker and Cloudflare DNS Authenticator plugin
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
#!/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