certbot certonly --dns-cloudflare -d '*.example.com' --dns-cloudflare-credentials ~/.cloudflare/credentials

Category: Web Servers & Proxies

certbot certonly --dns-cloudflare -d '*.example.com' --dns-cloudflare-credentials ~/.cloudflare/credentials

Issue a wildcard cert via Cloudflare DNS challenge

The DNS-01 challenge proves domain ownership by creating a TXT record, which the Cloudflare plugin does automatically using an API token from the credentials file. This is the only way to get wildcard certificates covering *.example.com. Requires the python3-certbot-dns-cloudflare package.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.