Unsupported record version SSLv2Hello using CloseableHttpClient

后端 未结 3 1947
梦毁少年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:10

    It looks like you're connecting to a server that incredibly enough in this day and age still supports SSLv2.

    Try removing SSlv2ClientHello from the list of enabled protocols, however you do that with Apache HTTPClient.

    NB You haven't needed that stuff with the com.sun.net.ssl.internal.ssl.Provider since 2004, and you need to be aware that your TrustManager and HostnameVerifier are both radically insecure. Also TrustManager.getAcceptedIssuers() is not permitted to return null: see the Javadoc.

提交回复
热议问题