java – SSL Connection Reset

java – SSL Connection Reset

It is an SSL version problem. The server only supports SSLv3, and Java will start at v2, and attempt to negotiate upwards, but not all servers support that type of negotiation.

Forcing java to use SSLv3 only is the only solution Im aware of.

Edit, there are two ways to do this that Im aware of:

  • If you are creating the socket by hand, you can set the enabled protocols

    socket.setEnabledProtocols(new String[] { SSLv3 });
  • If you are using a higher level library, you probably need to set all SSL requests to use v3 only, which is accomplished with the https.protocols system property:

    java -Dhttps.protocols=SSLv3

java – SSL Connection Reset

Leave a Reply

Your email address will not be published.