运行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参数之间的差异。
如果你想更具体,你可以指定如下
record enable per-record tracing
handshake print each handshake message
例如
-Djavax.net.debug=ssl:record
有关更多信息,请参阅此链接