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

Snap package incompatible with Certbot 3.0 #32

Open
DaHoC opened this issue Nov 7, 2024 · 1 comment
Open

Snap package incompatible with Certbot 3.0 #32

DaHoC opened this issue Nov 7, 2024 · 1 comment

Comments

@DaHoC
Copy link

DaHoC commented Nov 7, 2024

On Ubuntu 24.04.1 LTS, the following command fails (since more or less than a month?):

sudo certbot certonly --authenticator dns-hetzner --dns-hetzner-credentials /path/to/hcloud_dns_token.ini --staple-ocsp --email <redacted>

with following error message:

The following plugins are using an outdated python version and must be updated to be compatible with Certbot 3.0. Please see https://community.letsencrypt.org/t/certbot-3-0-could-have-potential-third-party-snap-breakages/226940 for more information:
  * certbot-dns-hetzner
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-hetzner-credentials /path/to/hcloud_dns_token.ini

sudo certbot plugins does not list the certbot-dns-hetzner plugin and displays the same message:

The following plugins are using an outdated python version and must be updated to be compatible with Certbot 3.0. Please see https://community.letsencrypt.org/t/certbot-3-0-could-have-potential-third-party-snap-breakages/226940 for more information:
  * certbot-dns-hetzner

Steps to reproduce:

On Ubuntu 24.04.1 LTS, install snapd and issue following commands:

sudo snap install --classic certbot
sudo snap set certbot trust-plugin-with-root=ok
sudo snap install certbot-dns-hetzner
sudo snap connect certbot:plugin certbot-dns-hetzner
sudo snap connect certbot-dns-hetzner:certbot-metadata certbot:certbot-metadata

and afterwards, try the above command sudo certbot certonly --authenticator dns-hetzner ...

As an alternative working solution, I switched to using pip instead of snap as package manager for certbot, as recommended.

@kthy
Copy link

kthy commented Nov 8, 2024

As far as I know, the snap install certbot-dns-hetzner actually installs the very outdated version of the plugin that this was forked from, https://github.com/BigMichi1/certbot-dns-hetzner/

See https://snapcraft.io/certbot-dns-hetzner for verification.

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

2 participants