In one application i'm using three different connections by SSL. Two of them have signed certificates, but one I'm authenticating with:
System.setProperty("javax.net.ssl.trustStore","F:\\eclipse\\terefere\\testkeystore"); System.setProperty("javax.net.ssl.trustStorePassword","123456"); Question is - how to get rid of these settings at the end of connection so that next connection is using new server's certificate ?