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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -