Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL Debugging in eclipse

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?

like image 379
Chris Bolton Avatar asked Oct 22 '14 17:10

Chris Bolton


1 Answers

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

like image 71
Saumya Suhagiya Avatar answered Oct 17 '22 13:10

Saumya Suhagiya