Certbot Dns Cloudflare

A plugin for Certbot that automates DNS-01 challenges using the Cloudflare API to issue and renew SSL certificates.

What it is

The certbot-dns-cloudflare plugin is a tool for system administrators and developers who use Let's Encrypt's Certbot to manage SSL/TLS certificates. It specifically handles the DNS-01 challenge required for wildcard certificate issuance by interacting directly with the Cloudflare DNS API. This automates the process of creating and removing the necessary TXT records, simplifying certificate renewal.

The plugin supports two methods of Cloudflare authentication: the legacy Global API Key and the newer, more secure API Tokens. API Tokens are recommended as they can be restricted to specific domains and operations, minimizing potential damage if credentials are leaked. The required token needs Zone:DNS:Edit permissions for the zones where certificates are needed.

Configuration involves creating a credentials file containing the API token or key. This file's path is provided to Certbot via a command-line argument. The plugin emphasizes security, warning users if the credentials file has unsafe permissions and advising them to restrict access.

It is not installed by default with Certbot. Users must select it specifically during the Certbot installation process from certbot.eff.org. The documentation provides clear examples for acquiring certificates for single and multiple domains, including adjusting the DNS propagation wait time.

This description was generated by AI from the site's public content and may contain errors.

What you can do there

  • Automate DNS-01 challenges for Let's Encrypt certificates
  • Manage Cloudflare DNS records via API
  • Issue wildcard SSL certificates
  • Renew SSL certificates automatically
  • Configure authentication via API Token or Global Key

Who it's for

System administrators and developers using Certbot and Cloudflare for SSL certificate management

Frequently asked questions about certbot-dns-cloudflare.readthedocs.io

›What is the certbot-dns-cloudflare plugin?

It is a plugin for Certbot that automates the process of completing a DNS-01 challenge for Let's Encrypt certificates by using the Cloudflare API to manage DNS TXT records.

›How do I authenticate with Cloudflare?

You can authenticate using either a Global API Key or a restricted API Token. The Token is recommended and requires Zone:DNS:Edit permissions for your domains.

›Where do I put my Cloudflare API credentials?

You create a credentials INI file on your server. The path to this file is provided to Certbot using the --dns-cloudflare-credentials command-line argument.

›Is the certbot-dns-cloudflare plugin installed by default?

No, it is not installed by default. You must install it separately by visiting certbot.eff.org, choosing your system, and selecting the Wildcard tab.

›What permissions does the Cloudflare API Token need?

The token needs Zone:DNS:Edit permissions for the specific zones where you need to acquire certificates.

›What does the propagation seconds setting do?

It sets the number of seconds Certbot waits for DNS changes to propagate before asking Let's Encrypt to verify the record, with a default of 10 seconds.

›Does Certbot store my Cloudflare API credentials?

No, Certbot only records the path to your credentials file for renewal purposes. It does not store the contents of the file.