Before I did use certbot-auto
what is not supportet in my current system anymore:
cd /usr/local/bin/
curl https://dl.eff.org/certbot-auto > certbot-auto
chmod 755 certbot-auto
./certbot-auto
results in the following error message
Skipping bootstrap because certbot-auto is deprecated on this system.
Your system is not supported by certbot-auto anymore.
Certbot cannot be installed.
Please visit https://certbot.eff.org/ to check for other alternatives.
Now I'll have to install certbot using snap install --classic certbot
what results in a completely other file structure so that my old installation with these commands does not work any longer (here installing the Hetzner DNS plugin).
cd /opt/eff.org/certbot/venv/bin
./pip2.7 install certbot-dns-hetzner
So how to install the plugins now? Where to find the certbot folders?
I did the snap installation of certbot and a dns plugin this way (I am working as root in Ubuntu 18.04 so please prepend
sudo
if you're not root).Don't be deceived
At least on Ubuntu I relly got deceived by
certbot plugins
, that did not show the plugin even though it is perfectly working.Install pip, certbot (with snap) and then simply do the pip installation of the plugin.
Now
certbot plugins
does not list your installed plugin but again, don't get fooled, it will work (at least it did work for me).If you are running into problems, have a look into the letsencrypt.log (normally /var/log/letsencrypt/letsencrypt.log) and find the paths let's encrypt searches for plugins (folder
dist-packages
). You should use the same python version, let's encrypt uses when installing your plugin.The wrong way
After trying the right way above (not knowing that certbot already could find and use the dns plugin), I went on trying this. I thought this is the right way and got deceived by
certbot plugin
because the plugin showed up but was not found while running a certbot request. So this is just for the ones being interested in failures ;-)Install certbot and check installed plugins:
Install the desired dns plugin into your certbot (here Hetzner DNS) installation and check if installation succeeded:
Note: Some plugins are already prepared to be installed by snap, what is the easiest way of installation. Search the SnapStore to find out if your desired plugin is already available in a snap version (like certbot-dns-cloudxns, certbot-dns-madeeasy, certbot-dns-dnssimple, ...).