Ubuntu server 20.04
Certbot 0.40.0
With a fresh install of certbot and the cloudflare dns plugin on ubuntu, I'm unable to use the api token method described here;
When running the command;
certbot certonly \
-d 'foobar.com' \
-d '*.foobar.com' \
--preferred-challenges dns-01 \
--server https://acme-v02.api.letsencrypt.org/directory \
--dns-cloudflare \
--dns-cloudflare-credentials ~/.secrets/certbot-dns-cloudflare.ini
I receive the following error;
Missing properties in credentials configuration file /root/.secrets/certbot-dns-cloudflare.ini:
* Property "dns_cloudflare_email" not found (should be email address associated with Cloudflare account).
* Property "dns_cloudflare_api_key" not found (should be API key for Cloudflare account, obtained from https://dash.cloudflare.com/profile/api-tokens).
cerbot plugins
show this, but I don't know how to verify the version of dns-cloudflare is above the threshold of v2.3.1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.entrypoint:ENTRYPOINT
* dns-cloudflare
Description: Obtain certificates using a DNS TXT record (if you are using
Cloudflare for DNS).
Interfaces: IAuthenticator, IPlugin
Entry point: dns-cloudflare =
certbot_dns_cloudflare.dns_cloudflare:Authenticator
* standalone
Description: Spin up a temporary webserver
Interfaces: IAuthenticator, IPlugin
Entry point: standalone = certbot.plugins.standalone:Authenticator
* webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot.plugins.webroot:Authenticator
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I have a file located here: ~/.secrets/certbot-dns-cloudflare.ini
(redacted)
# Cloudflare API token used by Certbot
dns_cloudflare_api_token = ########
Any ideas what might be wrong? How can I check the plugin version?