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 Respuestas
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
EXPERTO
respondido hace 5 meses
profile picture
EXPERTO
revisado hace 2 meses
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
EXPERTO
respondido hace 5 meses
profile picture
EXPERTO
revisado hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas