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ヶ月前

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

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

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

関連するコンテンツ