Which version of MongoDB driver supports 'ssl_ca_certs' parameter in URI?

0

Hi,

I want to connect to DocumentDb using Spring Data in a Spring Boot 2 Java application. I've added the query parameter ssl_ca_certs to the MongoDB URI but when I start my application it fails because ssl_ca_certs is not known as a parameter in the URI.

org.mongodb.driver.uri : Unsupported option 'ssl_ca_certs' in the connection string 'mongodb://(host):27017/(database)?ssl=true&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false&ssl_ca_certs=rds-combined-ca-bundle.pem'.

Which version of java MongoDb driver supports the ssl_ca_certs parameter?

已提问 4 年前3237 查看次数
1 回答
0

The latest version of the Java MongoDB driver is compatible with Amazon DocumentDB. To use the rds-combined-ca-bundle.pem cert from your Java application, you must create a trust store with the CA certificate, import the trust store locally on your client machine and then set the trust store from your application. For instructions on how to do this, refer to https://docs.aws.amazon.com/documentdb/latest/developerguide/connect_programmatically.html#connect_programmatically-tls_enabled

AWS
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则