PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to fin

来源:互联网 发布:怎么打开xp23端口 编辑:程序博客网 时间:2024/05/29 19:51
问题原因:
1.证书错误,如测试服用了生产的证书

2.System.setProperty("javax.net.ssl.trustStore",keyPath);

使用该方法时,会设置证书为一个全局变量,其他的接口要调用时,证书加载会是该全局变量,导致错误。

所以该方法使用时需要慎重

阅读全文
0 0
原创粉丝点击