Diego Ramos
Diego Ramos

Reputation: 1059

How to enable SSL Debug in Jetty?

I am trying to resolve an SSLHandshakeException and for that, I am trying to enable SSL to debug mode, I have tried setting -Djavax.net.debug=ssl but it doesn't work, the logger only gives me information about classes like org.eclipse.util.ssl.SSLContextfactory and org.eclipse.util.ssl.X509, does this mean that Jetty doesn't use JSSE implementation in its core?

I am trying to visualize the logs in this format: https://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/ReadDebug.html

Jetty is embedded in a bundle (Karaf OSGi Framework) using Pax Web 7.x

Thanks for the help.

Upvotes: 3

Views: 1256

Answers (1)

Hakan54
Hakan54

Reputation: 3861

The following vm argument should do the trick:

-Djavax.net.debug=SSL,keymanager,trustmanager,ssl:handshake

or

-Djavax.net.debug=ALL

Upvotes: 0

Related Questions