Command arguments issue with certbot-cloudflare-dns

Hi all,

I have a problem similar to this old question.

So the issue is the following: I'm trying to use the dns-01 authenticator plugin for Cloudfare. I'm on Ubuntu (without snap) and I'm correctly installed the certbot and python3-certbot-dns-cloudfare plugin.

Indeed, certbot reports it in the plugin list:

# certbot plugins
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* dns-cloudflare
Description: Obtain certificates using a DNS TXT record (if you are using
Cloudflare for DNS).
Interfaces: Authenticator, Plugin
Entry point: EntryPoint(name='dns-cloudflare',
value='certbot_dns_cloudflare._internal.dns_cloudflare:Authenticator',
group='certbot.plugins')

* standalone
Description: Runs an HTTP server locally which serves the necessary validation
files under the /.well-known/acme-challenge/ request path. Suitable if there is
no HTTP server already running. HTTP challenge only (wildcards not supported).
Interfaces: Authenticator, Plugin
Entry point: EntryPoint(name='standalone',
value='certbot._internal.plugins.standalone:Authenticator',
group='certbot.plugins')

* webroot
Description: Saves the necessary validation files to a
.well-known/acme-challenge/ directory within the nominated webroot path. A
seperate HTTP server must be running and serving files from the webroot path.
HTTP challenge only (wildcards not supported).
Interfaces: Authenticator, Plugin
Entry point: EntryPoint(name='webroot',
value='certbot._internal.plugins.webroot:Authenticator',
group='certbot.plugins')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

However, it does not recognize any argument of the plugin:

# certbot certonly --dns-cloudfare --dns-cloudfare-credentials /path/to/cloudfare.credentials --email abc@example.org -d example.org

usage: 
  certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...

Certbot can obtain and install HTTPS/TLS/SSL certificates.  By default,
it will attempt to use a webserver both for obtaining and installing the
certificate. 
certbot: error: unrecognized arguments: --dns-cloudfare --dns-cloudfare-credentials

I also tried with --authenticator dns-cloudfare with no success (recognize this argument but not the credential one).

Versions as reported by pip3 are:

certbot==2.8.0
certbot-dns-cloudflare==2.0.0

Any idea?

Hi @ricorico, and welcome to the LE community forum :slight_smile:

One: I'm thinking you may have multiple versions of certbot installed.
[one of them may know about the dns-cloudflare plugin ... but that one doesn't]

You mention pip3.
Make sure everything you need, and do, are all within the same environment.

2 Likes

Damn, I just missed an l in the --cloudf**l**are argument :sweat_smile:

Thanks in any case!

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.