DevOps / Scripts
bash
Advanced
Automated SSL Wildcard via DNS
Issue a Let's Encrypt wildcard certificate using Certbot with Cloudflare DNS challenge.
bash
#!/bin/bash
certbot certonly \
--dns-cloudflare \
--dns-cloudflare-credentials ~/.secrets/cf.ini \
-d "*.example.com" \
-d "example.com" \
--preferred-challenges dns-01 \
--email admin@example.com \
--agree-tos --non-interactive
Prerequisites
- certbot-dns-cloudflare
- Cloudflare API token
Pro Tips
- → Store credentials in ~/.secrets/cf.ini with chmod 600.
Commercial Licensing
Acquire a production access token or template license for enterprise deployment.
Module Info
- Language
- bash
- Level
- Advanced
- Read time
- 4 min
- Published
- Jul 2025
- License
- Commercial License
Newsletter
New modules every week, directly to your inbox.
Similar Modules
Postgres S3 Backup
Dump a Postgres database, gzip it, push to S3 with AES256 encryption.
bash
·
Intermediate
Disk Usage Alert
Send an alert when any mounted filesystem exceeds a usage threshold.
bash
·
Beginner
Docker Image Cleanup Script
Remove dangling images, stopped containers and unused volumes in one pass.
bash
·
Intermediate