javax.net.ssl.SSLHandshakeException [英] javax.net.ssl.SSLHandshakeException

查看:212
本文介绍了javax.net.ssl.SSLHandshakeException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我们的一个java应用程序试图运行amazone负载均衡器的受SSL保护的Web服务,其Gogaddy签署了他们的证书。我们没有在证书链框中复制并粘贴公钥证书链文件(PEM编码)的内容。现在我们看到以下错误:

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?

推荐答案

这个错误意味着你的java密钥库没有ssl证书来证明你正在尝试的服务连接。
您需要将GoDaddy / Intermediate CA的公共证书添加到您的java密钥库中。
你可以使用keytool命令

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

这篇关于javax.net.ssl.SSLHandshakeException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆