Meteor: Add support for MongoDB SSL URIs

Created on 25 Jul 2015  路  2Comments  路  Source: meteor/meteor

URI: domain.com:1234/db?ssl=true
console: mongo -ssl -sslCAFile example.pem example.dblayer.com:10373/admin -u user -p pass

https://www.compose.io/articles/going-ssl-with-compose-mongodb-plus/

Most helpful comment

Just for future reference for anyone confused about how to add the PEM file or setting -sslVerify or anything like that (like I was), note that the node driver (which Meteor uses) doesn't require it: http://mongodb.github.io/node-mongodb-native/2.0/tutorials/enterprise_features/

It won't do any certificate chain validation (which is less than ideal), but it will connect. All you need to do is specify ?ssl=true on your connection string to connect to an SSL-enabled host.

All 2 comments

What is this feature request? Is it support for the mongo driver? For mongo shell? Is there a reproduction?

To my knowledge, we pass the MONGO_URL string to the node driver which already supports SSL urls.

Just for future reference for anyone confused about how to add the PEM file or setting -sslVerify or anything like that (like I was), note that the node driver (which Meteor uses) doesn't require it: http://mongodb.github.io/node-mongodb-native/2.0/tutorials/enterprise_features/

It won't do any certificate chain validation (which is less than ideal), but it will connect. All you need to do is specify ?ssl=true on your connection string to connect to an SSL-enabled host.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AnthonyAstige picture AnthonyAstige  路  3Comments

bnewland picture bnewland  路  3Comments

zarub2k picture zarub2k  路  3Comments

JWo1F picture JWo1F  路  3Comments

sahanDissanayake picture sahanDissanayake  路  3Comments