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?
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.