Replies: 5 comments 2 replies
-
Funny. I just got it working after 4 minutes of posting the question. The solution is a hack, IMO. |
Beta Was this translation helpful? Give feedback.
-
There are a few reasons this isn't working:
If you share your Teleport config file ( |
Beta Was this translation helpful? Give feedback.
-
Actually, it seems to be working now. I am accessing proxy service over 443 and using ALB seems to work just fine. And also, is there a way to have users use their SSH keys to connect via WebUI ssh connection? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Another problem. End of the error is: Thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
Hello, I am also doing this experiment at present, a cloud server has built a community version of "teleport", an Intranet machine, and I want to use "teleport" to enable them to make two-way communication. I am currently stuck for several days because of the TLS certificate issue by myself, can you give me the configuration steps for reference? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am having really hard time getting teleport to setup with just simple SSH and App connectivity in the AWS.
I have deployed teleport (auth and proxy) service on the primary node. Added admin user. Then on client node, I am trying to deploy Node and App roles. From time to time Node role (aka ssh) works but I cannot get App one to work.
Primary node is behind AWS Application Load Balancer (so I can utilize AWS signed cert). Communication between client nodes and master is via Security groups (aka using private IPs).
The problem where I seem to get stuck at are the TLS certs. On primary node, I get these errors:
2022-06-13T06:59:07Z WARN [ALPN:PROX] Failed to handle client connection. error:[ ERROR REPORT: Original Error: *tls.permanentError remote error: tls: bad certificate Stack Trace: /go/src/github.com/gravitational/teleport/lib/srv/alpnproxy/proxy.go:376 github.com/gravitational/teleport/lib/srv/alpnproxy.(*Proxy).handleConn /go/src/github.com/gravitational/teleport/lib/srv/alpnproxy/proxy.go:314 github.com/gravitational/teleport/lib/srv/alpnproxy.(*Proxy).Serve.func1 /opt/go/src/runtime/asm_amd64.s:1581 runtime.goexit User Message: remote error: tls: bad certificate] alpnproxy/proxy.go:322
On client node, I get these:
2022-06-13T07:03:25Z DEBU [PROC:1] Failed to connect to Auth Server directly. auth-addrs:[teleport.mydomain.com:443] error:[ ERROR REPORT: Original Error: *trace.ConnectionProblemError Get "https://teleport.cluster.local/v2/domain": x509: certificate is valid for teleport.mydomain.com, not 6964656e746974795f736369656e6365.teleport.cluster.local Stack Trace: /go/src/github.com/gravitational/teleport/lib/httplib/httplib.go:146 github.com/gravitational/teleport/lib/httplib.ConvertResponse /go/src/github.com/gravitational/teleport/lib/auth/clt.go:293 github.com/gravitational/teleport/lib/auth.(*Client).Get /go/src/github.com/gravitational/teleport/lib/auth/clt.go:384 github.com/gravitational/teleport/lib/auth.(*Client).GetDomainName /go/src/github.com/gravitational/teleport/lib/auth/clt.go:1543 github.com/gravitational/teleport/lib/auth.(*Client).GetLocalClusterName /go/src/github.com/gravitational/teleport/lib/service/connect.go:974 github.com/gravitational/teleport/lib/service.(*TeleportProcess).newClientDirect /go/src/github.com/gravitational/teleport/lib/service/connect.go:869 github.com/gravitational/teleport/lib/service.(*TeleportProcess).newClient /go/src/github.com/gravitational/teleport/lib/service/connect.go:165 github.com/gravitational/teleport/lib/service.(*TeleportProcess).connect /go/src/github.com/gravitational/teleport/lib/service/connect.go:125 github.com/gravitational/teleport/lib/service.(*TeleportProcess).connectToAuthService /go/src/github.com/gravitational/teleport/lib/service/connect.go:64 github.com/gravitational/teleport/lib/service.(*TeleportProcess).reconnectToAuthService /go/src/github.com/gravitational/teleport/lib/service/service.go:2156 github.com/gravitational/teleport/lib/service.(*TeleportProcess).registerWithAuthServer.func1 /go/src/github.com/gravitational/teleport/lib/service/supervisor.go:521 github.com/gravitational/teleport/lib/service.(*LocalService).Serve /go/src/github.com/gravitational/teleport/lib/service/supervisor.go:269 github.com/gravitational/teleport/lib/service.(*LocalSupervisor).serve.func1 /opt/go/src/runtime/asm_amd64.s:1581 runtime.goexit User Message: Get "https://teleport.cluster.local/v2/domain": x509: certificate is valid for teleport.mydomain.com, not 6964656e746974795f736369656e6365.teleport.cluster.local] service/connect.go:892 2022-06-13T07:03:25Z DEBU [PROC:1] Failed to connect to Auth Server through tunnel. auth-addrs:[teleport.mydomain.com:443] error:[Get "https://teleport.cluster.local/v2/domain": ssh: handshake failed: ssh: overflow reading version string] service/connect.go:893 2022-06-13T07:03:25Z ERRO [PROC:1] "Node failed to establish connection to cluster: Failed to connect to Auth Server directly or over tunnel, no methods remaining.\n\tGet \"https://teleport.cluster.local/v2/domain\": x509: certificate is valid for teleport.mydomain.com, not 6964656e746974795f736369656e6365.teleport.cluster.local, Get \"https://teleport.cluster.local/v2/domain\": ssh: handshake failed: ssh: overflow reading version string." service/connect.go:86 2022-06-13T07:03:33Z DEBU [PROC:1] Retrying connection to auth server after waiting 47.193185623s. service/connect.go:98 2022-06-13T07:03:33Z DEBU [PROC:1] Connected state: never updated. service/connect.go:145 2022-06-13T07:03:33Z INFO [PROC:1] Connecting to the cluster mycluster with TLS client certificate. service/connect.go:164 2022-06-13T07:03:33Z DEBU [PROC:1] Attempting to connect to Auth Server directly. auth-addrs:[teleport.mydomain.com:443] service/connect.go:867 2022-06-13T07:03:33Z DEBU [PROC:1] Failed to connect to Auth Server directly. auth-addrs:[teleport.mydomain.com:443] service/connect.go:874 2022-06-13T07:03:33Z DEBU [PROC:1] Attempting to discover reverse tunnel address. auth-addrs:[teleport.mydomain.com:443] service/connect.go:883 2022-06-13T07:03:33Z DEBU [PROC:1] Attempting to connect to Auth Server through tunnel. auth-addrs:[teleport.mydomain.com:443] service/connect.go:885 2022-06-13T07:03:33Z DEBU Attempting GET teleport.mydomain.com:443/webapi/find webclient/webclient.go:118 2022-06-13T07:03:33Z DEBU Attempting GET teleport.mydomain.com:443/webapi/find webclient/webclient.go:118 2022-06-13T07:03:33Z DEBU Attempting GET teleport.mydomain.com:443/webapi/find webclient/webclient.go:118 2022-06-13T07:03:33Z DEBU [HTTP:PROX] No proxy set in environment, returning direct dialer. proxy/proxy.go:276
I have tried all ports for auth_servers on client. 3025 seems to work with SSH role.
I've tried using private IPs for auth_server communication. It works for SSH (maybe works for App).
After generating app token and trying to start services, these errors above pop-up.
I am using insecure on both servers. I am using insecure_verify true in the app config. I have been fighting with this for days. Curious if someone can help me. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions