mongodb-jdbc-driver icon indicating copy to clipboard operation
mongodb-jdbc-driver copied to clipboard

SSL support for passing cert along with the connections string

Open rehantoday opened this issue 2 years ago • 1 comments

Does this driver support SSL? If so, then how can we pass it the cert? for example:

jdbc_connection_string => "jdbc:mongodb://user:password@localhost:27017/testDb?authMechanism=DEFAULT&tls=true&tlsCAFile=/home/ca-bundle.pem"

but this doesn't work. Is there any other way?

rehantoday avatar Dec 19 '22 10:12 rehantoday

We do recognize this parameters: tls=true truststore=... truststorepassword=... The last two we add to Java System.properties(). You can also check this article. Our driver is using the MongoDB native driver. https://www.mongodb.com/docs/drivers/java/sync/current/fundamentals/connection/tls/

dbschema-pro avatar Jan 18 '23 07:01 dbschema-pro