Java – SSL debugging in eclipse

The following error occurred while running the 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 open SSL debugging in eclipse to tell the URL that caused the problem Or is there a better solution to debug this problem?

Solution

Try to use the following parameters when running or debugging

-Djavax.net.debug=ssl

Put this parameter into the debug / run configuration – > parameter – > into the VM parameter Check the difference between the program parameter and the VM parameter here

If you want to be more specific, you can specify the following

record       enable per-record tracing
handshake    print each handshake message

For the former

-Djavax.net.debug=ssl:record

For more information, see the this link

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>