# Installing certbot and its NGINX plugin

**URL:** https://forums.suse.com/t/installing-certbot-and-its-nginx-plugin/35662
**Category:** General Discussion
**Created:** [July 9, 2021, 3:46pm UTC](https://forums.suse.com/t/installing-certbot-and-its-nginx-plugin/35662 "2021-07-09T15:46:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Megidd](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@Megidd](https://forums.suse.com/u/Megidd)
#### Post date: [July 9, 2021, 3:46pm UTC](https://forums.suse.com/t/installing-certbot-and-its-nginx-plugin/35662/1 "2021-07-09T15:46:10Z")

</div>

### openSUSE Tumbleweed

Installing [`certbot`](https://software.opensuse.org/download/package?package=certbot&project=home%3Aecsos%3Aserver) and its NGINX plugin on openSUSE Tumbleweed was just straightforward:

```auto
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:

```auto
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](https://en.opensuse.org/Let%C3%82%C2%92s_Encrypt)
- Couldn’t figure out how to use [this](https://packagehub.suse.com/packages/certbot/) 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?

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [July 9, 2021, 4:42pm UTC](https://forums.suse.com/t/installing-certbot-and-its-nginx-plugin/35662/2 "2021-07-09T16:42:29Z")

</div>

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

```auto
SUSEConnect -p PackageHub/15.2/x86_64

```

---

<div class="post-metadata">

### Author: ![Megidd](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@Megidd](https://forums.suse.com/u/Megidd)
#### Post date: [July 9, 2021, 8:15pm UTC](https://forums.suse.com/t/installing-certbot-and-its-nginx-plugin/35662/3 "2021-07-09T20:15:07Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Megidd](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@Megidd](https://forums.suse.com/u/Megidd)
#### Post date: [July 9, 2021, 8:33pm UTC](https://forums.suse.com/t/installing-certbot-and-its-nginx-plugin/35662/4 "2021-07-09T20:33:17Z")

</div>

Following this post:

[https://forums.opensuse.org/showthread.php/556639-SLE-installing-certbot-and-its-NGINX-plugin?p=3047155#post3047155](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:

```auto
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:

```auto
sudo certbot --nginx

```

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [July 9, 2021, 9:16pm UTC](https://forums.suse.com/t/installing-certbot-and-its-nginx-plugin/35662/5 "2021-07-09T21:16:49Z")

</div>

@Megidd good deal 😄

---

<div class="post-metadata">

### Author: ![andreasnielsen87](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@andreasnielsen87](https://forums.suse.com/u/andreasnielsen87)
#### Post date: [January 7, 2022, 10:14am UTC](https://forums.suse.com/t/installing-certbot-and-its-nginx-plugin/35662/6 "2022-01-07T10:14:09Z")

</div>

For sure a good deal.
