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 回答
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
专家
已回答 5 个月前
profile picture
专家
已审核 2 个月前
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
专家
已回答 5 个月前
profile picture
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则