I did a standalone java (java 1.8, I cannot upgrade it) application that is a client of a webapp. This webapp has updated the SSL connection from SSL1.2 to SSL2. My development machine can access to the webapp, the production machine has some problems. If I don't set the HostnameVerifier, I have a SSLHandshakeException (Received fatal alert: handshake_failure). If I set the HostnameVerifier in this way:
httpsConnection.setHostnameVerifier(new HostnameVerifier() {
public boolean verify(String hostname, SSLSession session) {
return true;
}
});
the result is SocketException (Connection reset).
My develope machine works well without the HostnameVerifier. This means that I have some certificates installed on my PC? How can I install the same certificates into the production machine?