Unsupported record version SSLv2Hello using CloseableHttpClient

后端 未结 3 1951
梦毁少年i
梦毁少年i 2021-01-01 02:37

I am trying to make an https call and getting the following error: Unsupported record version SSLv2Hello

Can anyone please shed some light on what I\'m doing wrong?

3条回答
  •  庸人自扰
    2021-01-01 03:01

    It seems the problem is that JDK8 clients cannot connect to SSL2 server with the default Provider (SSLv2 is deprecated for a long time). You have to force the server to use SSL3 (or another safer protocol) or you have to use another provider (BouncyCastle?). Currently we have a similar problem with SOAP webservice JDK8 client and JDK6 server.

    http://en.wikipedia.org/wiki/Transport_Layer_Security#SSL_2.0

    http://tools.ietf.org/html/rfc6176

提交回复
热议问题