Installing certbot and its NGINX plugin

openSUSE Tumbleweed

Installing certbot and its NGINX plugin on openSUSE Tumbleweed was just straightforward:

zypper addrepo https://download.opensuse.org/repositories/home:ecsos:server/openSUSE_Tumbleweed/home:ecsos:server.repo
zypper refresh
zypper install certbot

Then, install python36-certbot-nginx and finally run:

sudo certbot --nginx

SLE 15 SP2

But I’m trying to do the same on SLE 15 SP2. I tried:

  • openSUSE backports repo
  • openSUSE Leap 15.2 repos
  • Instructions here
  • Couldn’t figure out how to use this by command-line

What am I missing? Is there a convenient way to install certbot and its NGINX plugin by the command line on SLE 15 SP2?

@Megidd Hi and welcome to the Forum :slight_smile:
You need to use SUSE Package hub for the python3 dependencies;

SUSEConnect -p PackageHub/15.2/x86_64

@malcolmlewis Thanks! :slight_smile:
I come from openSUSE world and not familiar with SUSEConnect command at all! I guess I will have to get to know it!

Following this post:

https://forums.opensuse.org/showthread.php/556639-SLE-installing-certbot-and-its-NGINX-plugin?p=3047155#post3047155

These commands installed the certbot on SLE 15 SP2:

sudo SUSEConnect -p PackageHub/15.2/x86_64
sudo zypper ref
sudo zypper install python3-certbot python3-certbot-nginx

And then, this command enabled HTTPS for all the servers handled by NGINX:

sudo certbot --nginx

@Megidd good deal :smile:

For sure a good deal.