eclipse中的SSL调试 [英] SSL Debugging in eclipse

查看:501
本文介绍了eclipse中的SSL调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  javax。 net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException:PKIX路径构建失败:
sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效认证路径
我想要在eclipse中打开SSL调试,以告知什么是导致问题的URL。或者有更好的解决方案来调试这个问题?

解决方案

在运行或调试时尝试以下参数。 b
$ b

  -Djavax.net.debug = ssl 

将此参数转到Debug / Run配置 - >参数 - >放入VM参数。验证程序参数和vm参数之间的差异这里



如果你想更具体,你可以指定如下

 记录启用每记录追踪
握手打印每个握手消息

for ex。

  -Djavax.net.debug = ssl:record 

有关更多信息,请参阅这个链接


I am getting the following error when running an Eclipse Application...

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

I want to turn on SSL debugging in eclipse to tell what URL is causing problems. Or is there a better solution to debugging this issue?

解决方案

Try with below arguments while running or debugging.

-Djavax.net.debug=ssl

For putting this argument go to Debug/Run configurations -> Arguments -> Put into VM arguments. Checkout difference between program arguments and vm arguments here.

If you want to be more specific you can specify as below

record       enable per-record tracing
handshake    print each handshake message

for ex.

-Djavax.net.debug=ssl:record

For more information refer this link

这篇关于eclipse中的SSL调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆