# RC 7.3.1. on fedora 41 in Docker needs a valid certifacte

**URL:** <https://forums.rocket.chat/t/rc-7-3-1-on-fedora-41-in-docker-needs-a-valid-certifacte/21667>\
**Category:** Community Support\
**Created:** [February 20, 2025, 5:17pm UTC](https://forums.rocket.chat/t/rc-7-3-1-on-fedora-41-in-docker-needs-a-valid-certifacte/21667 "2025-02-20T17:17:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![andybee1](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/andybee1/32/5818_2.png) [@andybee1](https://forums.rocket.chat/u/andybee1)\
**Post date:** [February 20, 2025, 5:17pm UTC](https://forums.rocket.chat/t/rc-7-3-1-on-fedora-41-in-docker-needs-a-valid-certifacte/21667/1 "2025-02-20T17:17:20Z")

</div>

### Description

How to copy my certfiles into the rocketchat container?

I do not want to use traefik, since that simply does not work and seems to be too difficult to setup.

### Server Setup Information

- Version of Rocket.Chat Server: 7.3.1
- Operating System: Fedora 41
- Deployment Method: docker
- Number of Running Instances: 1
- DB Replicaset Oplog: ?
- NodeJS Version:
- MongoDB Version:
- Proxy: traefik
- Firewalls involved: iptables/regular non professional firewalls

### Any additional Information

```auto
2025-02-19T20:14:51Z ERR Unable to obtain ACME certificate for domains error="unable to generate a certificate for the domains [mydomain.net]: error: one or more domains had a problem:\n[mydomain.net] acme: error: 400 :: urn:ietf:params:acme:error:connection :: 31.17.80.151: Timeout during connect (likely firewall problem)\n" ACME CA=https://acme-v02.api.letsencrypt.org/directory acmeCA=https://acme-v02.api.letsencrypt.org/directory domains=["mydomain.net"] providerName=le.acme routerName=rocketchat@docker rule=Host(`mydomain.net`)
2025-02-19T20:14:52Z ERR error="accept tcp [::]:80: use of closed network connection" entryPointName=web
2025-02-19T20:14:52Z ERR error="accept tcp [::]:443: use of closed network connection" entryPointName=https

```

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [February 20, 2025, 5:42pm UTC](https://forums.rocket.chat/t/rc-7-3-1-on-fedora-41-in-docker-needs-a-valid-certifacte/21667/2 "2025-02-20T17:42:46Z")

</div>

Read the docs carefully.

You should not expose Rocket directly. It should be sat behind a reverse proxy for your own security.

A proxy will protect you.

Rocket is NOT a web server - it just serves http code over port 3000. So you can’t ‘copy my certfiles into the rocketchat container’ because there is no web server there to use them - if you are not using traefik etc.

So you can use nginx or apache or whatever and add certs via dehydrated or certbot if you want simplicity. All as per the docs .

You probably ought to read some more on web servers, proxies, certificates etc as well so you understand the full interplay between them all.

---

<div class="post-metadata">

**Author:** ![andybee1](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/andybee1/32/5818_2.png) [@andybee1](https://forums.rocket.chat/u/andybee1)\
**Post date:** [February 20, 2025, 5:43pm UTC](https://forums.rocket.chat/t/rc-7-3-1-on-fedora-41-in-docker-needs-a-valid-certifacte/21667/3 "2025-02-20T17:43:08Z")

</div>

I wanted to add, that certbot runs smoothly and successfully:

Successfully received certificate.  
Certificate is saved at: /etc/letsencrypt/live/mydomain.net/fullchain.pem  
Key is saved at: /etc/letsencrypt/live/mydomain.net/privkey.pem  
This certificate expires on 2025-05-21.  
These files will be updated when the certificate renews.  
Certbot has set up a scheduled task to automatically renew this certificate in the background.

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [February 20, 2025, 8:37pm UTC](https://forums.rocket.chat/t/rc-7-3-1-on-fedora-41-in-docker-needs-a-valid-certifacte/21667/4 "2025-02-20T20:37:20Z")

</div>

Cool.

And?

Are you using a reverse proxy now?

---

<div class="post-metadata">

**Author:** ![andybee1](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/andybee1/32/5818_2.png) [@andybee1](https://forums.rocket.chat/u/andybee1)\
**Post date:** [February 22, 2025, 2:48pm UTC](https://forums.rocket.chat/t/rc-7-3-1-on-fedora-41-in-docker-needs-a-valid-certifacte/21667/5 "2025-02-22T14:48:36Z")

</div>

Yes, traefik is involved.  
Since it was too difficult to set it up in the way I wanted, I used the traefik.yml, which is recommended along with rc usage.

However, I still had to add traefik to my docker network, which I have set up.  
Rocket Chat and Traefik have not been able to communicate, since they were in separate networks.

After attaching them to the according network, the desired LE cert has being pulled.

Case closed.

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [February 22, 2025, 3:15pm UTC](https://forums.rocket.chat/t/rc-7-3-1-on-fedora-41-in-docker-needs-a-valid-certifacte/21667/6 "2025-02-22T15:15:21Z")

</div>

Cool and thanks for letting us know.
