MongoDB ssl .pem file in connection string -
i have mongodb server v 3.2 configured use ssl client connections, custom-generated certificate. can connect server using mongo.exe following format:
c:\mongodb\bin>mongo.exe myhost:27017/mydb --sslpemkeyfile c:\etc\ssl\mongodb.pem --ssl --username myuser --password mypassword --sslallowinvalidcertificates
is possible write equal mongodb connection string (mongodb://....)? according documentation, there ssl parameter, seems not enough.
could try connect mongo.exe parameter below:
"mongodb://myuser:mypassword@myhost:27017/mydb?ssl=true&sslallowinvalidcertificates=true&sslpemkeyfile=c:/etc/ssl/mongodb.pem"
Comments
Post a Comment