Skip to content

Instantly share code, notes, and snippets.

@drakeapps
Created August 29, 2020 23:50
Show Gist options
  • Save drakeapps/f1272d1b9e2ace33246ae9fa712ca14f to your computer and use it in GitHub Desktop.
Save drakeapps/f1272d1b9e2ace33246ae9fa712ca14f to your computer and use it in GitHub Desktop.
wildcard dns with cloudflare using docker image
# 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