title: Unrecognized SSL message, plaintext connection? Exception
body: <p>I have a java complied package to speak with the https server on net. Running the compilation gives the following exception:</p>
  
  <pre><code>javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
      at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)
  at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
  at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
  at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
  at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
  </code></pre>
  
  <p>I think this is due to the connection established with the client machine is not secure.  Is there any way to configure the local machine or ports in order to connect to the remote https server?</p>