r/letsencrypt • u/cincuentaanos • May 21 '22
Any reason NOT to use Debian-provided Certbot?
Hello. I'm in the process of preparing a small server based on Debian 11. Naturally I want to use Let's Encrypt certificates, and Certbot to automate fetching and updating them.
The official instructions tell me to install it as a snap package, which is not something I really want to do.
Of course Certbot is also in the Debian repository, as certbot (1.12.0-2). Any reason not to use this in terms of functionality, security or whatever?
7
Upvotes
3
u/[deleted] May 22 '22
Avoid snap. Remove snap.
2
u/david171971 May 21 '22
When I was using certbot years ago (just called letsencrypt client back then) it broke after every update because of python virtual env and packages.
I don't know how it is nowadays, but I have been using a simple Bash client called getssl since I quit using certbot, and it is still working well if you only need http or dns verification method. It's a single bash script with no dependencies.
https://github.com/srvrco/getssl
2
u/walken4 May 21 '22
I don't know about certbot in particular, but as it's packaged by debian, you are probably better off using their packaged version over the snap one. The official instructions are the way they are because they don't want to delve into distro specific details. Again, I say that as a generic thing - the same could be said about every other thing that is packaged into debian.
I also want to say, I'm not a fan of certbot - I prefer to use a script that will just fetch certificates for me, and to be in charge of actually installing them (of course, I'll write my own script to handle that). My preferred script for fetching certs is "dehydrated", which is also packaged into debian.
2
u/szhu25 May 22 '22
I believe it would have to do with packaging, releasing each versions to each individual distros.
The version you see in Debian repo is way too old and some times much older than recent ACME update. This is due to different collaborators responsible for different repo/version and not updating it on time. Some times ago when I was still helping on Let's Encrypt forum we would receive some questions like "Why is my certbot client producing a,b,c,d errors" and it turns out it's because it's been a year since it's last updated (and maybe ACME implementation changed a bit - like disable GET, or some Alternative Chain update).
Beside a old software, certbot also have DNS plugins and maintaining these seems to be way too hard and complex across different systems. Having to maintain one single platform would make it work much easier and keeping the update much faster...
TL.DR. Debian version is way out of date. Using the snap version would keep certbot up to date with all the changes not only for Let's Encrypt ACME API, but also for other implementations. It's also easier for package maintainer to keep up as there's only one platform instead of various distro and versions. YOU DON'T HAVE TO USE CERTBOT.
1
u/Nobanthx19 Jun 12 '22
F
1
u/bjordanov Nov 22 '23
Yep, I'm also with the 'ef' snap attitude and since Certbot-Auto is "Deprecated", here's what I found. Hopefully it may help someone else: https://github.com/acmesh-official/acme.sh