cloned from :
http://www.bolet.org/TestSSLServer https://github.com/UniconLabs/java-keystore-ssl-test http://docs.oracle.com/javase/7/docs/technotes/guides/security/jsse/ReadDebug.html https://docs.oracle.com/javase/7/docs/technotes/guides/security/jsse/samples/sockets/client/SSLSocketClientWithClientAuth.java
also see http://www.smartjava.org/content/how-analyze-java-ssl-errors