rethinkdb / docs

RethinkDB documentation
http://rethinkdb.com/docs
Apache License 2.0
117 stars 167 forks source link

r.connect({ssl: {}}) has undocumented options #1183

Open dsernst opened 8 years ago

dsernst commented 8 years ago

The docs for the JS driver's r.connect says for the ssl key:

Currently, there is only one option available

But this is incorrect. The driver passes the entire SSL object to tls.connect here, so it can use all of tls.connect's options.

In particular, I needed to make use of rejectUnauthorized: false as a temp fix because my server was rejecting Compose's self-signed ssl certificate with a "unable to verify the first certificate" error.