Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] unrecognized arguments while following the instructions #31

Open
Louis-d-C opened this issue Oct 15, 2021 · 12 comments
Open

[BUG] unrecognized arguments while following the instructions #31

Louis-d-C opened this issue Oct 15, 2021 · 12 comments

Comments

@Louis-d-C
Copy link

I am currently trying to use this plugin on my debian 10 server to obtain a wildcard certificate. I followed every step, but when it came to the certbot command, it fails with the error

certbot: error: unrecognized arguments: --dns-gandi-credentials /etc/letsencrypt/gandi/gandi.ini

@Louis-d-C Louis-d-C reopened this Oct 15, 2021
@ferblape
Copy link

ferblape commented Nov 5, 2021

Try with the old syntax https://pypi.org/project/certbot-plugin-gandi/1.2.3/

@Synchro
Copy link

Synchro commented Nov 29, 2021

Old syntax doesn't work either.

@hitokiri8x
Copy link

Have you installed the package as normal user and run certbot as SU?

@Synchro
Copy link

Synchro commented Nov 29, 2021

No, it's installed as root (using the EFF official snap) and run as root. Either way, I'm assuming I'm running into the problems described in #22. It's a shame that Gandi's own plugin is also defunct; they're not doing themselves any favours when all their competitors are supported!

@hitokiri8x
Copy link

I've installed 2 weeks ago on my RPi, cannot recall the first command, but this is my working crontab command for renew.

certbot renew -q --authenticator dns-gandi --dns-gandi-credentials /etc/letsencrypt/gandi.ini

Certbot was installed though apt

@sblondon
Copy link

@Louis-d-C Which package managers do you use to get this error (pip or debian)?

I have the same error with debian packages (Debian GNU/Linux 11 - bullseye) but it works in a virtualenv and pip packages:

sudo apt install python3-venv
python3 -m venv venv
./venv/bin/pip install certbot
./venv/bin/pip install certbot-plugin-gandi
sudo ./venv/bin/certbot certonly --authenticator dns-gandi --dns-gandi-credentials /etc/letsencrypt/gandi.ini -d testdns.domain.tld

In case it helps, the versions are different:

lib debian pip
certbot 1.12.0 1.22.0
certbot-plugin-gandi 1.2.5-3 1.3.2

@baradhili
Copy link

baradhili commented Apr 19, 2022

I found using sudo certbot and the syntax from https://pypi.org/project/certbot-plugin-gandi/1.2.3/ worked when I installed things from apt on ubuntu 20

@Korko
Copy link

Korko commented Sep 1, 2022

Fixed on my side, the issue was that certbot was called with sudo while the plugin was install without sudo so only for my local user.

sudo pip install certbot-plugin-gandi
Did the trick

@HLFH
Copy link
Contributor

HLFH commented Dec 9, 2022

@Louis-d-C Can you specify your version of certbot and certbot-plugin-gandi, and their installation mode (apt, snap, pip)?

@Synchro The snap installation mode is not supported. But this project is open to any PR that will add support to it.

Debian supports the package certbot-dns-gandi with apt, but only the next versions Debian Bookworm (testing) and Debian Sid (unstable) support a decent version (1.4.2 at this time): https://packages.debian.org/search?keywords=python3-certbot-dns-gandi. And the installation via pip for certbot and certbot-dns-gandi should work without any issue.

@obynio We may have to close the issue as we did not get any reply from @Louis-d-C in one year.

@Louis-d-C
Copy link
Author

@HLFH

I gave up on the wildcard certificate and did every subdomain I needed manually because I could not find out how to make it work. As of now, I don't need an infinite number of certificates so I can't really spend more time trying to fix this issue.

The version of certbot was 1.20.0, certbot-plugin-gandi was version 1.3.2 and the os was debian 10.

@dvinz
Copy link

dvinz commented Feb 20, 2023

Hi,
Old syntax works for me.
debian 10.13
certbot 0.31.0
certbot-dns-ovh 0.31.0
certbot-nginx 0.31.0
certbot-plugin-gandi 1.2.5

root@toto:~#certbot certonly --authenticator dns-gandi --dns-gandi-credentials /etc/letsencrypt/gandi/gandi.ini -d domain.fr -d \*.domain.fr --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 /etc/letsencrypt/gandi/gandi.ini

With old syntax =

root@toto:~#certbot certonly -a certbot-plugin-gandi:dns --certbot-plugin-gandi:dns-credentials /etc/letsencrypt/gandi/gandi.ini -d domain.fr -d \*.domain.fr
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator certbot-plugin-gandi:dns, Installer None
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:
dns-01 challenge for domain.fr
dns-01 challenge for domain.fr
Waiting 10 seconds for DNS changes to propagate
Waiting for verification...
Cleaning up challenges

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved

@Alexandero89
Copy link

@Louis-d-C Which package managers do you use to get this error (pip or debian)?

I have the same error with debian packages (Debian GNU/Linux 11 - bullseye) but it works in a virtualenv and pip packages:

sudo apt install python3-venv
python3 -m venv venv
./venv/bin/pip install certbot
./venv/bin/pip install certbot-plugin-gandi
sudo ./venv/bin/certbot certonly --authenticator dns-gandi --dns-gandi-credentials /etc/letsencrypt/gandi.ini -d testdns.domain.tld

In case it helps, the versions are different:
lib debian pip
certbot 1.12.0 1.22.0
certbot-plugin-gandi 1.2.5-3 1.3.2

This one fixed it for me.
Create its own venv and only install these two packages.
And then tell cron to use this venv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants