Hi
I'm new to traefik and I hope this is not a dumb question.
I have a client that I can't control. It connects to a service, I want to hide behind traefik via https. It checks for the self signed certificates of that service. It does not support SNI. So I need to passthrough TLS.
I first tried with a TCP router, which would not work because of the not supported SNI. Now I'm trying to use an http router. This is the config
http:
routers:
tc-1-https:
entrypoints: websecure
rule: Host(`tc.domain.me`)
service: tc-1-https-service
services:
tc-1-https-service:
loadbalancer:
passhostheader: true
servers:
- url: https://172.21.0.3:443 # docker container url
serverstransport: mytransport
serversTransports:
mytransport:
serverName: tc-1-https-service
insecureSkipVerify: true
certificates:
- certFile: /etc/traefik/certs/tc/tc-cert.pem
keyFile: /etc/traefik/certs/tc/tc-key.pem
rootCAs:
- /etc/traefik/certs/tc/ca-root.pem
Edit: There are no traefik errors, I can see the router and service in the UI. The service is reachable through https (with a warning of course) but the certs are the default traefik certs.
Is it even possible? Any help is highly appreciated.
Thanks!