helgeerbe / certbot-dns-ionos

A certbot plugin for enabling DNS authentication with IONOS
Other
39 stars 11 forks source link

certbot: error: unrecognized arguments #5

Closed bhopmann closed 3 years ago

bhopmann commented 3 years ago

While using this command

sudo certbot certonly --authenticator dns-ionos --dns-ionos-credentials /etc/letsencrypt/ionos.ini --dns-ionos-propagation-seconds 900 --server https://acme-v02.api.letsencrypt.org/directory --agree-tos --rsa-key-size 4096 -d my.domain.com

I get the following error: certbot: error: unrecognized arguments: --dns-ionos-credentials /etc/letsencrypt/ionos.ini --dns-ionos-propagation-seconds 900

helgeerbe commented 3 years ago

Is the plugin istalled?

What is the output of certbot plugins ? I would expect this: * dns-ionos Description: Obtain certificates using a DNS TXT record (if you are using IONOS for DNS). Interfaces: IAuthenticator, IPlugin Entry point: dns-ionos = certbot_dns_ionos.dns_ionos:Authenticator

helgeerbe commented 3 years ago

Which version of cerbot are you using?

certbot --version certbot 1.11.0

When I remember right the argument naming conventions changed latley in certbot

bhopmann commented 3 years ago

Is the plugin istalled?

Sorry, no, it isn't. That was the crucial mistake!

Which version of cerbot are you using? certbot --version certbot 0.31.0

helgeerbe commented 3 years ago

Version 0.31.0 is from February 2019. You should update your certbot version.

clementmas commented 1 year ago

When I run certbot plugins I don't see "dns-ionos" even though I ran pip install certbot-dns-ionos. So I get an "unrecognized arguments" error.

Is it because certbot is installed with snap?

EDIT: I followed this article and it fixed my issue: https://www.rushworth.us/lisa/?p=8887

sudo ln -s /usr/local/lib/python3.10/dist-packages/certbot_dns_ionos /usr/lib/python3/dist-packages/
sudo ln -s /usr/local/lib/python3.10/dist-packages/certbot-2.7.1.dist-info /usr/lib/python3/dist-packages/