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 年前檢視次數 3238 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南