Ubuntu – How do up upgrade LetsEncrypt certbot to version 0.22 which supports wildcard certificates

aptletsencryptsoftware installationssl

To get a wildcard SSL certificate from LetsEncrypt you need to run certbot version 0.22 or later according to https://community.letsencrypt.org/t/acme-v2-production-environment-wildcards/55578

I've installed certbot from apt using

sudo apt-get install certbot

However, that reports:

certbot is already the newest version (0.17.0-2).

How can I upgrade certbot to a version that supports wildcard certificates?

Best Answer

If you have already installed Certbot, you should add a parameter to apt-get install to upgrade only a specific package

sudo apt-get update
sudo apt-get install --only-upgrade certbot

Check version number

certbot --version || /path/to/certbot-auto --version

Reference answer: How to upgrade a single package using apt-get?