title: SSL connection with specific protocol version
body: <p>I'm trying to perform SSL connection with specific protocol version, with the following JAVA code:</p>
  
  <pre><code>    System.out.println("Locating socket factory for SSL...");
      SSLSocketFactory sslsocketfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
      System.out.println("Creating secure socket to " + https_url + ":443");
      SSLSocket sslSocket = (SSLSocket)sslsocketfactory.createSocket();
      String []protocol = {"SSLv2Hello"};
      sslSocket.setEnabledProtocols(protocol);
      SocketAddress addr = new InetSocketAddress(https_url,443);
      sslSocket.connect(addr);
      String [] P = sslSocket.getEnabledProtocols();
      System.out.println("Enabled Protocol: " + Arrays.toString(P));
  </code></pre>
  
  <p>When running the code, I get the following exception:</p>
  
  <p><code>Exception in thread "main" java.lang.IllegalArgumentException: SSLv2Hello cannot be enabled unless at least one other supported version is also enabled.
      at sun.security.ssl.ProtocolList.(Unknown Source)
      at sun.security.ssl.ProtocolList.(Unknown Source)
      at sun.security.ssl.SSLSocketImpl.setEnabledProtocols(Unknown Source)
      at CheckByURL.test(CheckByURL.java:36)
      at CheckByURL.main(CheckByURL.java:15)</code></p>
  
  <p>When I tried with other SSL version, it worked well.</p>
  
  <p>Some one know how to solve this issue?</p>