Stay up to date with the latest from the Knowledge Center. See all new Knowledge Center articles published in the last month, and re:Post’s top contributors.
How to access both DocumentDB and S3 in the same Java program
0
Hello,
I have a Java Spring Boot 2 application that needs to connect to both DocumentDB and S3.
com.amazonaws.SdkClientException: Unable to execute HTTP request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
in
com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4365)
Does anyone knows how to connect to DocumentDB and other endpoints that needs SSL in a Java program?
I tried specifying the pem file on the MongoDB URI but the parameter ssl_ca_certs is not known by the driver.
Are these answers helpful? Upvote the correct answer to help the community benefit from your knowledge.
0
Hi. You can update the trustStore created for DocumentDB and add the AWS Truststore CA certificates - see keytool -importkeystore along with this blog.
The certificates can be found here.