Last active
January 2, 2024 03:37
-
-
Save vzool/8f6dd47523cd88007c870a926e0412f2 to your computer and use it in GitHub Desktop.
Cloudflare and Let's Encrypt Wildcard Certificate for Bind9
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
#!/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