eclipse中的SSL调试

Chr*_*ton 7 java eclipse debugging ssl eclipse-plugin

运行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
Run Code Online (Sandbox Code Playgroud)

我想在eclipse中启用SSL调试以告知导致问题的URL.或者是否有更好的解决方案来调试此问题?

Sau*_*iya 13

在运行或调试时尝试使用以下参数.

-Djavax.net.debug=ssl
Run Code Online (Sandbox Code Playgroud)

要将此参数放入Debug/Run configurations - > Arguments - > Put into VM arguments.在这里检查程序参数和vm参数之间的区别.

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

record       enable per-record tracing
handshake    print each handshake message
Run Code Online (Sandbox Code Playgroud)

对于前

-Djavax.net.debug=ssl:record
Run Code Online (Sandbox Code Playgroud)

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