tsh authentication handshake failed: tls: failed to verify certificate: x509 #54338
-
|
Expected behavior: Current behavior: Bug details: full installation create self signed certificate: cat ca_openssl.cnf cat teleport_openssl.cnf create secrets from this cert on my servers and clients I added this certificate as trusted that is my teleport values I use ingress-controller with this values: I install ingress controller like this my installation of teleport: create user ok I can login to web interface add OTP for my mobile. after I decide check connection with tsh utill. I install it: and get command to connect I get this error: in log of auth service I get If I use option '--insecure' in auth log I got in ingress log I got so because of this ingress log and domain (hash).teleport.cluster.local I added alternative domain when I created self signed certificate and I created additional ingress also I checked how it work without nothing change. my version of k8s = v1.24.0 please help with settings. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Your issue is that you're using a layer 7 reverse proxy, but Try this login command and it should work: More information about layer 7 TLS routing here: https://goteleport.com/docs/reference/architecture/tls-routing/#working-with-layer-7-load-balancers-or-reverse-proxies You don't need the additional ingress or to handle anything specially for (I also tidied up your post as it was unreadable - you need to use 3 backticks ``` for multi-line fixed width blocks of text, not one) |
Beta Was this translation helpful? Give feedback.
Your issue is that you're using a layer 7 reverse proxy, but
tshis not correctly detecting that it needs to use websockets for its transport.Try this login command and it should work:
More information about layer 7 TLS routing here: https://goteleport.com/docs/reference/architecture/tls-routing/#working-with-layer-7-load-balancers-or-reverse-proxies
You don't need the additional ingress or to handle anything specially for
*.teleport.cluster.local, the websocket wrapping will handle all of this for you. You should also remove thenginx.ingress.kubernetes.io/ssl-…