obynio / certbot-plugin-gandi

Certbot plugin for authentication using Gandi LiveDNS
https://pypi.org/project/certbot-plugin-gandi/
MIT License
195 stars 27 forks source link

error: unrecognized arguments: --dns-gandi-credentials #27

Closed badroum closed 3 years ago

badroum commented 3 years ago

Hello, I have this error I tried with the old configuration of the pluging but without better result my certbot version is 1.13.0

can someone help me?

sudo certbot certonly --authenticator dns-gandi --dns-gandi-credentials /opt/certbot/gandi.ini -d XXX.yyy -d *.XXX.yyy --server https://acme-v02.api.letsencrypt.org/directory 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-gandi-credentials /opt/certbot/gandi.ini

obynio commented 3 years ago

You need to use a certbot-plugin-gandi>=1.3.2 and certbot>=1.7.0 For everyone else do not hesitate to drop a comment if you're affected by the issue.

badroum commented 3 years ago

Hello,

thank you for your answer, here are my versions "Raspbian GNU/Linux 10 (buster)" Python 2.7.16 Python 3.7.3 certbot 1.11.0 certbot-plugin-gandi 1.3.2

obynio commented 3 years ago

Hello,

I just tested on a Debian Buster using certbot v1.13 and nothing to report everything was running perfectly. You certbot installation might be messed up, can you please run the following commands and paste me here the output.

If that's not already the case, please instal certbot using pip3 rather than apt to get the most up-to-date version.

badroum commented 3 years ago

pi@raspberrypi:~ $ certbot --version certbot 1.11.0 pi@raspberrypi:~ $ certbot plugins


obynio commented 3 years ago

I don't understand why it does not works as expected. Entrypoints are correct but the plugin isn't detected by certbot. Using the legacy entrypoints may work, you should give it a try.

https://github.com/obynio/certbot-plugin-gandi#legacy-prefix-based-configuration-for-certbot170

I also see you're installing certbot using APT (certbot 0.31.0), I would advise to clean your certbot installation and install certbot using pip to get the latest version.