Certbot Docker container that request certificates for domains resolved by Cloudflare DNS.
You can choose between the restricted API token or global API key to authenticate with Cloudflare. Credentials are stored in cloudflare.ini
in the following format. The API token method is more restricted and therefore more recommended. More documentation can be found here.
API token (recommended):
dns_cloudflare_api_token=<TOKEN>
API key:
dns_cloudflare_email=<EMAIL>
dns_cloudflare_api_key=<KEY>
docker-compose run --rm certbot certonly --dns-cloudflare --dns-cloudflare-credentials /cloudflare.ini -d example.com
docker-compose run --rm certbot renew
docker-compose run --rm certbot delete --cert-name example.com