【发布时间】:2012-10-13 08:51:35
【问题描述】:
我有一些 java 应用程序抱怨不同的 SSL 问题,例如自签名证书或不受信任的证书。
由于我没有这些应用程序的代码并且获得良好的证书太难了,我正在寻找一种可以让我强制连接的解决方案。
到目前为止,我尝试了这些,但似乎还不够:
-Dcom.sun.net.ssl.checkRevocation=false
-Djava.security.debug=certpath
我还是看到了:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetjavax.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
【问题讨论】:
-
这是另一种似乎并不总是有效的方法。