Rocketchat with Letsencrypt

Description

I cannot seem to get rc 7 to pull certs following this guide:
https://docs.rocket.chat/v1/docs/deploy-with-docker-docker-compose#preparation-steps
along with traefik as stated here: Traefik Let's Encrypt Documentation - Traefik

But I do have the certs as files and want to add them to my rocketchat docker-compose.yml but I do not know how to do it.

Any suggestions where to start in this mess ?

Cheers :slight_smile:

Server Setup Information

  • Version of Rocket.Chat Server: 7.0.0
  • Operating System: Fedora Linux
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version: 6.0.x
  • Proxy: traefik
  • Firewalls involved: Yes (Port 80/443 forwarded to rocketchat)

Any additional Information

Traefik logs states an error:

2024-11-15T09:29:38Z ERR github.com/traefik/traefik/v3/pkg/provider/acme/provider.go:457 > Unable to obtain ACME certificate for domains error="unable to generate a certificate for the domains [https://mydomain.com]: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rejectedIdentifier :: Invalid identifiers requested :: Cannot issue for \"https://mydomain.com\": Domain name contains an invalid character" ACME CA=https://acme-staging-v02.api.letsencrypt.org/directory acmeCA=https://acme-staging-v02.api.letsencrypt.org/directory domains=["https://mydomain.com"] providerName=myresolver.acme routerName=whoami@docker rule=Host(`https://mydomain.com`)

So if you read what it tells you then you can see the probem.

I think you should fix this first.

After that you don’t have to do much - just follow the guide.