Hi there, I want to secure a route to a docker container with clientAuth. With following config in my dynamic config, everything works:
tls:
stores:
default:
defaultCertificate:
certFile: /certs/xxx.crt
keyFile: /certs/xxx.key
options:
default:
clientAuth:
clientAuthType: RequireAndVerifyClientCert
caFiles:
- /certs/myCA.pem
But I want to enable clientAuth only for a special container. So I have following config:
tls:
stores:
default:
defaultCertificate:
certFile: /certs/xxx.crt
keyFile: /certs/xxx.key
options:
mtls:
clientAuth:
clientAuthType: RequireAndVerifyClientCert
caFiles:
- /certs/myCA.pem
In my docker compose for the special container I have following label:
- traefik.http.routers.xxx.tls.options=mtls@file
In the dashboard it looks good:
But when opening the routed site no client certificate is requested.