The system environment variable javax.net.debug may be used to enable output of diagnostic messages to assist in debugging jsse related problems. For example, to view all debug diagnostic messages execute your application with the following argument:
-Djavax.net.debug=all
Supported debug options can be viewed by running your application with
-Djavax.net.debug=help.