Obtaining LetsEncrypt Wildcard Certificates using DNS-01
Security

Obtaining LetsEncrypt Wildcard Certificates using DNS-01

  • AuthorBen H.
  • Date
  • Time11 minutes

When to use Wildcard Certificates

Wildcard certificates are useful when you need to secure multiple subdomains without creating individual certificates.

Using Certbot DNS Plugins

Certbot supports DNS plugins for many providers. Install the appropriate plugin and provide API credentials:

bash
# example for Cloudflare
sudo pip install certbot-dns-cloudflare
certbot certonly \
  --dns-cloudflare \
  --dns-cloudflare-credentials /root/.secrets/cloudflare.ini \
  -d "*.example.com" -d example.com

Technical Author

Ben H.

Ben H.

Rack, remote hands, and logistics in the datacenter. Writes when the job is hardware, hands on site, and getting gear in place.