S3 upload issue - unable to find valid certification path to requested target

0

Hello All,

I am trying to upload the file from the application to the S3 bucket on environment. But there I am getting the this error: com.amazonaws.SdkClientException: Unable to execute HTTP request: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

When I tried the same from my local it is working fine for me.

Can someone please confirm what is went wrong

2 Answers
1

This is an exception handling class in Java that deals with verifying the SSL certificates of the server that the java application is trying to connect to.

The reason, in this case, is also the lack of certificate configuration of the parent domain in the client machine.

Your likely missing the CA that S3 SSL cert is signed by. You will likely need to update your CertStore.

https://blog.packagecloud.io/solve-unable-to-find-valid-certification-path-to-requested-target/

profile picture
EXPERT
answered 4 months ago
profile picture
EXPERT
reviewed a month ago
0

On top of that, consider using one of these patterns to upload files in aws https://aws.amazon.com/blogs/compute/patterns-for-building-an-api-to-upload-files-to-amazon-s3/

profile picture
EXPERT
answered 4 months ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions