如何解决sun.security.provider.certpath.SunCertPathBuilderException? [英] How to solve sun.security.provider.certpath.SunCertPathBuilderException?

查看:1352
本文介绍了如何解决sun.security.provider.certpath.SunCertPathBuilderException?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一些代码来连接我的邮件服务器并阅读电子邮件。我使用SSL连接使用POP3。我还在java密钥库中添加了SSL证书。但我仍然得到同样的例外。请帮忙。在此先感谢。

解决方案

可能的原因是此例外是密钥库中的证书与服务器的证书不匹配。 / p>

结帐这些链接可能对您有所帮助:




I have written some code to connect to my mail server and read emails. I am using POP3 using SSL connection. I have also added SSL certificate to the java keystore. But still i am getting the same exception. Please help. Thanks in advance.

解决方案

Possible cause this exception would be the cert from the keystore does not match the cert from the server.

Checkout these link might be helpful to you:

这篇关于如何解决sun.security.provider.certpath.SunCertPathBuilderException?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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