Skip to content

Instantly share code, notes, and snippets.

@vzool
Last active January 2, 2024 03:37
Show Gist options
  • Save vzool/8f6dd47523cd88007c870a926e0412f2 to your computer and use it in GitHub Desktop.
Save vzool/8f6dd47523cd88007c870a926e0412f2 to your computer and use it in GitHub Desktop.
Cloudflare and Let's Encrypt Wildcard Certificate for Bind9
#!/bin/bash
# apt install certbot python3-certbot-dns-cloudflare
chmod 400 /root/.cloudflare
certbot certonly --dry-run --dns-cloudflare --dns-cloudflare-credentials /root/.cloudflare -d *.example.me && date >> ssl.log
chown bind:bind /etc/letsencrypt/live -R
# .cloudflare file
# Cloudflare API credentials used by Certbot
# dns_cloudflare_email = admin@example.com
# dns_cloudflare_api_key = xxxxxxxxxxxxxxxxxxxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment