-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem connecting with TLS #44
Comments
Hi, so first of all, the logs that you see are coming directly from the go nats client and looks like for some reason a timeout occurs. I tried to reproduce the problem but i never got a timeout caused by self-signed certs. Pls, check this working example setup an maybe twaking it we can find the issue 🐰 |
Hi, sorry for the delay. I've asked for a spare machine so I can try the working example, anyway I noticed "verify: false" in the nats.conf, I don't have that option.
anyway, testing TLS with the same certificates works ok:
also with curl the connection works without any problem:
I've also tried an insecure connection, but in this case I can't get the connection working at all. So, I'm thinking, is there any problem if the monitoring port is other than 80? In my case it's 8800. I'm lost :P |
More data: if I open my browser, point to the nui interface and create a new connection to my nats cluster, it get the pink (X) icon and never get online. Anyway, if I open directly the connections api /api/connection/ I get the json representing it, but if I try to open the /ws/sub api with the connection id /ws/sub?id=3d782bcb-485a-4b94-ad40-3ab1754e1dd4 I get an "upgrade required" message. IDK if it's ok, but maybe it can be useful |
Hi, first of all, thanks for this software and keep up the good work.
I'm trying to connect to NATS using TLS with self signed certificates.
I've no problem with others clients, but whenI try with NATS-NUI it can't connect, the log show:
disconnected - read tcp 172.x.x.x:41232->192.x.x.x:8800: i/o timeout
and the NATS log show:
[ERR] monitoring: TLS handshake error from 172.x.x.x:60522: read tcp 192.x.x.x:8800->172.x.x.x:60522: i/o timeout,
The certificate files are the very same other clients are using, so I'm a little lost. is there a way to have a more detailed log?
The text was updated successfully, but these errors were encountered: