-
Notifications
You must be signed in to change notification settings - Fork 230
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
Document TLS server cert validation when running on NodeJS #190
Comments
I guess we are having the same issue here, I'm connecting to a secure web socket connection from NodeJS, and it constantly fails to connect , with the reason being "unreachable" and the details:
|
Does your node/openssl support TLS 1.2, or only TLS 1.x, SSLv3 or less? Because of crossbario/crossbar#620 .. |
I think so, because I’ve just updated my nodejs to 4.4.1, which is the latest LTS version. Besides, I find that my problem is in fact identical to this one: to which you have also responded, but it’s not solved…
|
Hi All, |
raw_wss_client.txt
By the way if i use only raw websockets/ws lib, then connection is successful with no warnings or errors. Maybe you can point me where to debug connection issues in autobahn project or linked modules? |
So for one thing, running in production, Crossbar.io can be made accepting connections only over TLS, and automatically redirect in-secure connections to the secure endpoint like this: next:
this is dangerous! it will deactive the client side checking of the server certificate, and it seems to be deprecated anyways what really needs to be done is: the client side nodejs and so actually this has nothing to do with ABJS, but all with nodejs configuration - but we might want to add some notes to our docs here in ABJS just to be helpful. TLS can be tricky to setup;) |
Hi there,
In my application i have a Crossbar router with 3 ports running.
9000 running on localhost for a custom authenticator.
8443 running tls with a self signed certificate
8080 running plaintext.
other than port 8443 having a section for TLS configuration, it has the same settings as port 8080.
In the browser with a url of wss://192.168.1.9:8443/ws autobahnjs connects to Crossbar over tls(browser based autobahnjs also works plaintext over 8080),but even with a url of wss://192.168.1.9:8443/ws autobahnjs in node try's to get ws://192.168.1.9:8443/ws, the nodejs client will only work over the unsecured 8080.
(used node-inspector to debug)
The text was updated successfully, but these errors were encountered: