installing cerbot on ubuntu using pip


Ubuntu 20.04 certbot package is ancient, the packge offers version 0.40.0 instead the current version is 2.6.x.

I need some resource like —preferred-chain that only exists in the recent version.

let's install it

apt remove certbot -f

installing depencies

 apt install python3 python3-venv libaugeas0

creating a venv

python3 -m venv /opt/certbot/

upgrading pip

/opt/certbot/bin/pip install --upgrade pip

installing the plugins

/opt/certbot/bin/pip install certbot certbot-apache certbot-nginx certbot-dns-cloudflare

creating the simbolic link

ln -s /opt/certbot/bin/certbot /usr/bin/certbot

creating a certificate for my zimbra

certbot certonly --dns-cloudflare --dns-cloudflare-credentials /etc/letsencrypt/cloudflare/nativetrail.conf -d '*,' -n --force-renewal --preferred-chain "ISRG Root X1"

That's it ;)

Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!