title: EIdOSSLConnectError Error connecting with SSL - EOF was observed
body: <p>My platform is this</p>
  
  <ul>
  <li>OS X Yosemite 10.10.5</li>
  <li>newest Indy (10.6.2.0, download 2016 March 13 - Indy10_5346.zip)</li>
  <li>Lazarus 1.4.4</li>
  </ul>
  
  <p>Concerning OpenSSL versions I have tried: </p>
  
  <ul>
  <li>HomeBrew OpenSSL installed like this: <em>"brew install openssl
  --universal"</em></li>
  <li>Built-in (0.9.8) OS X supplied in <em>/usr/lib/</em></li>
  </ul>
  
  <p>I am getting error: </p>
  
  <blockquote>
    <p>EIdOSSLConnecError  Error connecting with SSL - EOF was observed that
    violates the protocol </p>
    
    <p>In file Protocols/IdSSLOpenSSLHeaders.pas at line 19418</p>
  </blockquote>
  
  <p>However, as I am using newest of everything - why am I be getting this error?</p>
  
  <p>(Happens in call to <strong>OpenEncodedConnection</strong>)</p>
  
  <p>Here's how I setup my Indy HTTP client OpenSSL handler:</p>
  
  <pre><code>FIOHandlerOpenSSL := TIdSSLIOHandlerSocketOpenSSL.Create;
  FIOHandlerOpenSSL.SSLOptions.SSLVersions := [sslvSSLv23,sslvTLSv1,sslvTLSv1_1,sslvTLSv1_2]
  FIOHandlerOpenSSL.Mode := sslmClient;
  FIOHandlerOpenSSL.VerifyMode := [];
  FIOHandlerOpenSSL.VerifyDepth := 0;
  </code></pre>