Remote error: tls: unknown certificate

Hi All,
I use docker for traefik and for a target continer.
I added certificate (dynamic conf):

    certFile = "/path/"
    keyFile = "/path/"
    stores = ["default"]
        certFile = "/path/"
        keyFile  = "/path/"

In the log I can see:
Adding route for with TLS options default

When I call the target i received
http: TLS handshake error from remote error: tls: unknown certificate
Serving default certificate for request: ""

But the certificate is generate from Traefik.

Then I have 2 problem:

  1. Traefik don't find the true certificate
  2. the default certificate is not use.

Target container creation:

docker create --name home
  -p 8080:80
  -l traefik.enable=true
  -l "traefik.http.routers.home.rule=Host(\"\")"
  -l "traefik.http.routers.home.entryPoints=websecure"
  -l "traefik.http.routers.home.tls=true"
  -l ""
  --network traefik-net

Someone can help me to understand how to solve my problem?


Please format code/config using 3 backticks before and after or select it and press </> button.

I can close my own thread.
I can't use the same folder for traefik.toml e dynamic.toml.
I set file providers to a folder and not directly to the configuration with filename


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