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;
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
Interesting question. I guess that isn't implemented in certbot. I might open an issue on the certbot Github page. Or you might do it, if you're interested.
Does this mean I need to use the global api key, or is there a better way to install a newer version?
On a different set up a while back I seem to remember using pip to install it, but I used sudo apt install python3-certbot-dns-cloudflare in this instance.
The certbot team nowadays advertises the use of snapd and the certbot snap and the separate plugin snaps in stead of the official packaged versions. This enables them to keep the snap current at all times, while official packages often lag behind tremendously. See the current howto for Ubuntu 20.04: https://certbot.eff.org/lets-encrypt/ubuntufocal-other