oortcloud / node-ddp-client

A callback style DDP (Meteor's Distributed Data Protocol) node client.
Other
263 stars 80 forks source link

`use_ssl_strict` not working #32

Closed emgee3 closed 10 years ago

emgee3 commented 10 years ago

So with the switch from ws to faye-websockets the use_ssl_strict option no longer works. Lack of this is also probably the underlying cause for https://github.com/oortcloud/node-ddp-client/issues/20.

faye-websockets uses the underlying node TLS module for SSL but doesn't pass along the rejectUnauthorized property. See https://github.com/faye/faye-websocket-node/blob/master/lib/faye/websocket/client.js#L22-L34.

The problem with the ws module is it requires compiling native C++ code. Doing so is a bit problematic on Windows.

There's a few different potential ways of fixing this:

emgee3 commented 10 years ago

Removed use_ssl_strict