java – eclipse中的SSL调试
发布时间:2020-12-15 00:55:39 所属栏目:Java 来源:网络整理
导读:运行 Eclipse应用程序时出现以下错误… javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification
运行
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 把这个参数放到Debug / Run配置 – >参数 – >放入VM参数.检查程序参数和vm参数here之间的区别. 如果您想更具体,可以指定如下 record enable per-record tracing handshake print each handshake message 对于前 -Djavax.net.debug=ssl:record 有关更多信息,请参阅this链接 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |