运行 Eclipse 应用程序时出现以下错误...
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
我想在 eclipse 中打开 SSL 调试来判断是哪个 URL 导致了问题。或者是否有更好的解决方案来调试此问题?
最佳答案
在运行或调试时尝试使用以下参数。
-Djavax.net.debug=ssl
要放置此参数,请转到调试/运行配置 -> 参数 -> 放入 VM 参数。检查程序参数和 vm 参数之间的区别 here .
如果你想更具体,你可以指定如下
record enable per-record tracing
handshake print each handshake message
例如
-Djavax.net.debug=ssl:record
有关更多信息,请参阅 this链接
关于java - eclipse 中的 SSL 调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26513040/