问题
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?
回答1:
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
来源:https://stackoverflow.com/questions/19046639/javax-net-ssl-sslhandshakeexception