I use compose.io to host mongodb test and production databases and try to connect through the node application using mongoose.js (which uses the standard nodejs mongodb driver under the hood). My connection settings are as follows:
var connectionString = 'mongodb://user: password@host1 :port1,host2:port2/dbname?ssl=true'; var options = { mongos: true, server: { ssl: true, sslValidate: true, sslCA: [fs.readFileSync('/path/to/cert/certificate.pem')]
The connection just seems to freeze. I do not receive an error message from the server and do not receive an "open" event.
source share