javax.net.ssl.SSLHandshakeException

最后都变了- 提交于 2019-12-20 05:01:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!