Munees Majid
Munees Majid

Reputation: 767

javax.net.ssl.SSLHandshakeException

Recently we had an issue with one of our java applications that was trying to run an SSL protected web service of amazone load balancer,that had their certificate signed by GoDaddy. we did not Copy and paste the contents of the public key certificate chain file (PEM-encoded) in the Certificate Chain box. now we were seeing the following error:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

. Is there a way to resolve this exception?

Upvotes: 1

Views: 5260

Answers (1)

coder
coder

Reputation: 4466

This error means your java keystore doesnt have ssl certificate for service you are trying to connect. You need to add the public certificate of GoDaddy/Intermediate CA to your java keystore. you can use keytool command for that

Upvotes: 1

Related Questions