helgeerbe/certbot-dns-ionos

certbot: error: unrecognized arguments

bhopmann opened this issue · 5 comments

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

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

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

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

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

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/