7

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?

1 Answer 1

15

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

Sign up to request clarification or add additional context in comments.

1 Comment

Where does the output of the ssl logs show? I have added the arguments to my VM options, but I am not seeing any output. I am doing my rest calls from my unittests/integrationstest which I both run or debug, but no output anywhere other than the same exception as the author.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.