s.setNeedClientAuth(true); s.startHandshake(); System.out.println("the SSL session was created"+s.getSession() );
Joined: Feb 07, 2004
You do not need keystore to establish SSL, since keys are assigned dynamically. However you need it to build a chain of CA, so cacerts used for this purpose. If you get no exceptions you can be sure thatyour connection is secure. You can always verify that by trying to connect to non secure site, or site using not CA signed certificate.