Created
August 29, 2020 23:50
-
-
Save drakeapps/f1272d1b9e2ace33246ae9fa712ca14f to your computer and use it in GitHub Desktop.
wildcard dns with cloudflare using docker image
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
# read cloudflare dns doc to create api key ini file and copy to `/etc/letsencrypt/cloudflare.ini | |
# pull docker image | |
docker pull certbot/dns-cloudflare | |
# make certs (edit dns as needed) | |
docker run -it --rm --name certbot -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" certbot/dns-cloudflare certonly --dns-cloudflare-credentials /etc/letsencrypt/cloudflare.ini --dns-cloudflare-propagation-seconds 30 -d *.xrho.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment