# Setting up Let's Encrypt with a public IP and multiple domains in Hestia CP.

**URL:** <https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731>\
**Category:** Install & Set-Up\
**Created:** [January 15, 2024, 8:25pm UTC](https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731 "2024-01-15T20:25:08Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![carecald](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/carecald/32/5610_2.png) [@carecald](https://forum.hestiacp.com/u/carecald)\
**Post date:** [January 15, 2024, 8:25pm UTC](https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731/1 "2024-01-15T20:25:08Z")

</div>

Hello to all community members, I have a question about the Hestiacp panel: I have successfully installed it on Debian 11 with all updates, and it works perfectly. I use it as a self-hosting solution on a real physical machine with a public IP from my internet provider in Paraguay. Currently, it has a working domain, and its hostname is correctly set with Lets Encrypt SSL certificates. I’ve been looking for a way to implement the same certificate for all the domains I create within the server. If I try to enable Lets Encrypt support from the panel for each domain separately, the panel creates SSL support for the last domain where I activated it but removes SSL support for the previously activated one.

I found a tool called certbot, which theoretically activates SSL support for all domains using a single public IP for the server. How do I achieve this using Hestiacp?

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [January 15, 2024, 9:41pm UTC](https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731/2 "2024-01-15T21:41:25Z")

</div>

Hestia works fine with multiple SSL certificates on server …

With the exception for anything on port :8083…

---

<div class="post-metadata">

**Author:** ![carecald](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/carecald/32/5610_2.png) [@carecald](https://forum.hestiacp.com/u/carecald)\
**Post date:** [January 16, 2024, 10:47am UTC](https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731/3 "2024-01-16T10:47:45Z")

</div>

Could you please tell me how to make HestiaCP generate Let’s Encrypt certificates for all the domains I have created on my server?

The issue I’m facing is that, for example, I have a domain [http://starlabsinformatica.com](http://starlabsinformatica.com/) that is working fine with Let’s Encrypt. However, when I try to generate another Let’s Encrypt SSL certificate for another domain that will use the same shared IP, the panel generates it correctly but removes the SSL from the previous domain, and this keeps happening.

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [January 16, 2024, 10:54am UTC](https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731/4 "2024-01-16T10:54:03Z")

</div>

As long for the [domain.com](http://domain.com) it should work fine …

 ![Screenshot 2024-01-16 at 11.53.25](https://forum.hestiacp.com/uploads/default/original/2X/e/e9e29fd552b12b6c6bb8d353dd10aec85c71670c.png)

 ![Screenshot 2024-01-16 at 11.55.15](https://forum.hestiacp.com/uploads/default/original/2X/f/fdc0178aa5814f66eef2e63290c93064ad6323cb.png)

I have multiple domain running on it with out any problems …

---

<div class="post-metadata">

**Author:** ![carecald](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/carecald/32/5610_2.png) [@carecald](https://forum.hestiacp.com/u/carecald)\
**Post date:** [January 17, 2024, 12:18pm UTC](https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731/5 "2024-01-17T12:18:57Z")

</div>

The server where this works for you, does it have a single shared IP configured for all the set up domains? The issue is that if I follow that procedure, the Let’s Encrypt certificate is configured for the last domain in which I perform that setup procedure. However, the SSL is also removed from the last domain where it was activated. In other words, Let’s Encrypt provides an SSL certificate for a domain with an IP address. But, if I have a single IP address with multiple domains created in the same panel, what should I do to ensure that Let’s Encrypt can provide SSL certificates for all the domains configured in Hestia CP?

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [January 17, 2024, 12:55pm UTC](https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731/6 "2024-01-17T12:55:37Z")

</div>

I have only a single Ip adress on that server… It should work fine …

How do you request a new certificate then?

---

<div class="post-metadata">

**Author:** ![carecald](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/carecald/32/5610_2.png) [@carecald](https://forum.hestiacp.com/u/carecald)\
**Post date:** [January 19, 2024, 11:15am UTC](https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731/7 "2024-01-19T11:15:57Z")

</div>

Apparently, I follow the exact process you showed me in the screenshot. For instance, I currently have Let’s Encrypt SSL on the domain [http://starlabsinformatica.com](http://starlabsinformatica.com/), and I would like to add Let’s Encrypt SSL certificates to the domain [http://carlos-recalde.info](http://carlos-recalde.info/) (and another 11 or 12 domains) with their respective webmail When I do this, Hestia CP removes the SSL from the existing domains and assigns it only to the most recent one.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [January 19, 2024, 11:31am UTC](https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731/8 "2024-01-19T11:31:20Z")

</div>

> [@carecald](#):
>
> The issue is that if I follow that procedure, the Let’s Encrypt certificate is configured for the last domain in which I perform that setup procedure.

Could you please explain in detail what are you doing? Because you only need to edit the web domain and select `Enable SSL for this domain` and `Use Let's Encrypt to obtain SSL certificate` (you can also add automatic redirection to HTTPS and HSTS) and once done `Save`

![imagen](https://forum.hestiacp.com/uploads/default/original/2X/3/3056e0039de0ac0b8474667746dce1e6c4d27935.png)

Do the same for all your domains.

---

<div class="post-metadata">

**Author:** ![carecald](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/carecald/32/5610_2.png) [@carecald](https://forum.hestiacp.com/u/carecald)\
**Post date:** [January 21, 2024, 11:29am UTC](https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731/9 "2024-01-21T11:29:44Z")

</div>

I will try to be as descriptive as possible:

I have installed Debian 11 on a server, and successfully installed the Hestia CP panel, which is working fine.  
I have created plans and users for the panel successfully.  
I have also been able to properly set up all the domains in the DNS so that the same server hosting the panel acts as the primary DNS (in my country, Paraguay, there are limited freedoms regarding external hosting, so I set it up on my own server to configure it as I like).

Now, I have 12 domains created with a single public IP, and what I need is for all the domains to have Let’s Encrypt certificates.

For some reason, when I configured the first domain, it worked well. However, when configuring the second domain, the system assigned the Let’s Encrypt certificate to the second domain but removed it from the first one. This pattern repeats with the rest of the domains.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [January 21, 2024, 11:35am UTC](https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731/10 "2024-01-21T11:35:08Z")

</div>

> [@carecald](#):
>
> For some reason, when I configured the first domain, it worked well. However, when configuring the second domain, the system assigned the Let’s Encrypt certificate to the second domain but removed it from the first one.

It has no sense, could you please explain how are you doing that? Using Hestia you add a web domain and configure it to issue and use a Let’s Encrypt certificate, then you add a new web domain and configure it to issue and use a Let’s Encrypt certificate and it will create different and independent certificates for your different domains.

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [February 20, 2024, 11:35am UTC](https://forum.hestiacp.com/t/setting-up-lets-encrypt-with-a-public-ip-and-multiple-domains-in-hestia-cp/12731/11 "2024-02-20T11:35:49Z")

</div>

Closed on February 20, 2024, 11:35am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
