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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ