Hi,
I want to use custom TLS certificates with my traefik v3.1.0 which is running with docker-compose
.
Let's Encrypt works so far, but for some reasons I wanted to experiment and use certificates I got with acme.sh
or mkcert
(for local purposes).
For this:
- I have mounted my folder under
/tls
in the container - Referenced all the files in my
traefik.yaml
- Replaced my label from the service container with something like
traefik.http.routers.myservice.tls=true
- double-checked that the certificates and keys are readable (
docker exec sh
in the container andcat
the files, compared the paths with the ones from the yaml).
I have all sorts of certificates; "real" ones from ZeroSSL with wildcards and for single domains, and self-created ones from mkcert
.
Observation: For my service, traefik always returns the traefik default certificate. I have no evidence that traefik has loaded them, I don't see anything in the logs.
Question: What can I do to debug this. Is there something which should be in the logs, if traefik loaded certificates, or something else I can do?
Thanks!