Closed timotheeandres closed 7 months ago
In the meantime, I seem to have found a workaround:
/usr/lib/python3/dist-packages/certbot/plugins
certbot-dns-infomaniak:dns-infomaniak
as the authenticator@timotheeandres I am following your workaround, but I still have the same message. Any help?
My apologies, I did not update my message. It seems that this workaround stopped working at some point.
Another solution I found was to use specifically the pip version of certbot, and to make sure to install the mock
package as well: https://github.com/Infomaniak/certbot-dns-infomaniak/issues/26#issuecomment-1484165778
Thanks. Still the same. I reviewed your instructions, but the same error. Could you give me your commands?
Depending on your system, you might want to change pip
to pip3
, and use the corresponding packet manager instead of apt
. Remember to download the proper web server extension if you need it (here I use nginx).
Here is what I used:
sudo apt autoremove certbot
sudo pip install certbot certbot-nginx
sudo pip install mock
Thanks! Same error :-(
As a last resort, did you try using certbot-dns-infomaniak:dns-infomaniak
instead of certbot-dns-infomaniak
?
And could you re-run the command, with -v
, and show here the result?
I have the exact same issue and no solution that I could find: installed certbot via snap on Fedora, then certbot-dns-infomaniak via pip3, and certbot can't find the plugin even though it appears in certbot plugins (and it worked a few months ago, maybe with a previous version of certbot?)
Any help appreciated! I can't create a new subdomain :(
Yes, plugins and certbot have to be installed via pip3
Thanks for the reply, I just uninstall the snap version of certbot and installed the pip version using the instructions from https://certbot.eff.org/instructions?ws=nginx&os=pip and I get the exact same issue:
The requested dns-infomaniak plugin does not appear to be installed
With the logs saying:
2024-01-09 10:15:10,092:DEBUG:certbot._internal.plugins.selection:Requested authenticator dns-infomaniak and installer None 2024-01-09 10:15:10,092:DEBUG:certbot._internal.plugins.selection:No candidate plugin 2024-01-09 10:15:10,093:DEBUG:certbot._internal.log:Exiting abnormally: [...]
Any following idea? :)
Nevermind, my issue was with not installing the plugin inside the virtual environment, it works now :)
sudo /opt/certbot/bin/pip install certbot-dns-infomaniak
@masterbuck thanks for the good news.
Could you share your steps? Thanks!
For the full shebang:
I installed certbot via pip using the official instructions: https://certbot.eff.org/instructions?ws=nginx&os=pip
I then installed certbot-dns-infomaniak within the virtual environment created for the occasion:
sudo /opt/certbot/bin/pip install certbot-dns-infomaniak
I then followed the normal instructions from this GitHub:
export INFOMANIAK_API_TOKEN=bipboupboup
sudo --preserve-env=INFOMANIAK_API_TOKEN certbot certonly --authenticator dns-infomaniak --server https://acme-v02.api.letsencrypt.org/directory --agree-tos --rsa-key-size 4096 -d 'sub.domain.tld'
And this time it worked without issues!
@masterbuck Thanks!
I am trying to use dns-01 to validate my certificates, but I cannot seem to have Certbot use the plugin to connect to Infomaniak.
I installed the package as listed:
And I'm running the following command:
sudo --preserve-env=INFOMANIAK_API_TOKEN certbot certonly --authenticator dns-infomaniak --server https://acme-v02.api.letsencrypt.org/directory --rsa-key-size 4096 -d <domain>
But the command fails, and the logs display this:
I performed a reboot of the server, to no avail.
Versions: