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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With