-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.0.24
-
Component/s: None
-
Labels:
-
Environment:node: v0.10.26
os: darwin x64
-
Empty show more show less
We have ssl-enabled replica set and were connection with driver 1.4.19 without problems
var db = require('mongodb').Db; var url = 'mongodb://user:pwd@host1,host2/database?ssl=true'; var opts = { replSet: { replicaSet: 'rs1' } }; db.connect(url, opts, function(err, db) { console.log(err, db); });
I'm getting an error if I connect with the same options with driver 2.0.24
var client = require('mongodb').MongoClient; var url = 'mongodb://user:pwd@host1,host2/database?ssl=true'; var opts = { replSet: { replicaSet: 'set-5241a5bf48a7a21be300033c' } }; client.connect(url, opts, function(err, db) { console.log(err, db); }); result: { name: 'MongoError', message: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' } null
What is the trick to make it work?