Chris Bolton
Chris Bolton

Reputation: 2314

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?

Upvotes: 7

Views: 14976

Answers (1)

S S
S S

Reputation: 1020

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

Upvotes: 15

Related Questions