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 Antworten
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
EXPERTE
beantwortet vor 5 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
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
EXPERTE
beantwortet vor 5 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen