Unrecognized arguments: --dns-cloudflare-credentials

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
rmart.in

I ran this command:

certbot certonly   \
  --dns-cloudflare \
  --dns-cloudflare-credentials ~/.secrets/certbot/cloudflare.ini  \
  --dns-cloudflare-propagation-seconds 60   \
  -d *.rmart.in\
  -i nginx

It produced this output:

certbot: error: unrecognized arguments: --dns-cloudflare-credentials /home/<user>/.secrets/certbot/cloudflare.ini --dns-cloudflare-propagation-seconds 60

My web server is (include version):
nginx/1.14.2

The operating system my web server runs on is (include version):
Debian GNU/Linux 10 (buster)

My hosting provider, if applicable, is:
Self

I can login to a root shell on my machine (yes or no, or I don't know):
Yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
No

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
certbot 0.31.0


I've also tried running certbot plugins and certbot-dns-cloudflare doesn't show up:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* nginx
Description: Nginx Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: nginx = certbot_nginx.configurator:NginxConfigurator

* 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
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

However, it shows up in snap list:

Name                    Version    Rev    Tracking       Publisher     Notes
certbot                 1.13.0     1043   latest/stable  certbot-effâś“  classic
certbot-dns-cloudflare  1.13.0     632    latest/stable  certbot-effâś“  -
core                    16-2.49.1  10910  latest/stable  canonicalâś“    core
core20                  20210319   974    latest/stable  canonicalâś“    base

Can anyone tell what I'm doing wrong here? Thank you for any help!

1 Like

Hi @balanga ,

Welcome to this community!

First of all, can you be a bit specific on which certbot did you go to install? The one from apt/yum or the one from snap? If you did install from snap, did you also installed the certbot cloudflare dns plugin? Or if from package manager, did you install the dns plugin (It's not installed by default)?

Because, based on your output of certbot version, you can see that the in-use bin seems to come from your package manager, instead of snap (0.31.0 vs 1.13.0).

If you did install certbot from snap, you might need to check your system and uninstall the one from your package manager. If you did not install certbot from snap, uninstall your certbot and get certbot from snap.

Hope this helps!
Steven Z

3 Likes

Thank you @stevenzhu , that was exactly it! I really appreciate the help on this :smiley:

4 Likes

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