原文:微服务:Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors 异常

今天重构项目出现Caused by: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors 异常 原来使用了在数据库连接时使用了 userSSL 参数,将sueSSL true 改为 useSSL false,项目可以正常跑起来了。 ...

2020-03-24 19:06 0 1709 推荐指数:

查看详情

java.security.cert.CertificateException: No subject alternative names present

背景:在开发一个项目中,要调用一个webservice服务,之前设置的是http协议,项目中采用jdk自带的wsimport工具生成的客户端代码; 后来,需求变更要求兼容https协议的webservice,开始以为只需要简单的将服务地址的连接改为https就可以了;但不行,总是报错 ...

Fri Oct 30 03:19:00 CST 2015 0 16713
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM