SSL Debugging in eclipse

12,639

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

Share:
12,639
Chris Bolton
Author by

Chris Bolton

Updated on June 18, 2022

Comments

  • Chris Bolton
    Chris Bolton almost 2 years

    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?