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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠