Set the following options in getssl.cfg (either global or domain-specific):
VALIDATE_VIA_DNS="true"
DNS_ADD_COMMAND="/usr/share/getssl/dns_scripts/dns_add_cloudflare"
DNS_DEL_COMMAND="/usr/share/getssl/dns_scripts/dns_del_cloudflare"
There are 2 methods of authenticating with Cloudflare:
Both are configured from your profile in the Cloudflare dashboard
The Zone ID for the domain will be searched for programmatically.
Set the following options in getssl.cfg:
export CF_EMAIL="..." # Cloudflare account email address
export CF_KEY="..." # Global API Key
Cloudflare provides a template for creating an API Token with access to edit zone records. Tokens must be created with at least 'DNS:Edit permissions for the domain to add/delete records.
The API requires higher privileges to be able to list zones, therefore this method also requires the Zone ID from the Overview tab in the Cloudflare Dashboard.
Set the following options in the domain-specific getssl.cfg
export CF_API_TOKEN="..."
export CF_ZONE_ID="..."
Note: API Keys will be used instead if also configured