title: Lazarus Indy SSL IdHTTP
body: <p>I'm trying to get Indy to work with SSL and the IdHTTP component in Lazarus installed on Ubuntu 11. I know my code is right for the http post since if I remove the https and leave it as only http it works. So I figure it's the SSL and indy's components missing Linux libraries. For window's I was use to just including the two DLL's, <code>libeay32.dll</code> and <code>ssleay32.dll</code> and it worked fine.</p>
  
  <p>But in linux it seems to be another story. The only code I have is the post code:</p>
  
  <pre><code>IdHttp1.Post('url', StringList, ReturnStreamList);
  </code></pre>
  
  <p>Like I said it works great without the https, but when I try SSL nothing happens at all. No error since I have <code>try</code> and <code>except</code> to catch but I'm not doing anything with the catching.</p>
  
  <p>I do have OpenSSL installed, I also have the following installed through <code>apt</code>:</p>
  
  <pre><code>libcrypto++8
  libcrypto++-dev
  libssl-dev
  libssl0.9.8
  </code></pre>
  
  <p>I went to <code>/usr/lib</code> and both the files <code>libcrypto.so</code> and <code>libssl.so</code> are there.</p>
  
  <p>Any ideas what's missing to get SSL to work with Lazarus and Indy for IdHTTP post operations?</p>
  
  <p>EDIT: Ok, after following advice below I have added the exception:</p>
  
  <pre><code>on E: EIdHTTPProtocolException do
         showmessage(htp1.ResponseText);
  </code></pre>
  
  <p>This gives me the error <code>Error creating SSL context</code>.</p>
  
  <p>EDIT2: I ran an strace and I have pasted the output areas where it open's the SSL libraries here:
  <a href="http://pastebin.com/fL6tTSGg" rel="nofollow">http://pastebin.com/fL6tTSGg</a></p>