title: Delphi: idHttp+SSL
body: <p>Explain me please how to download a file from a server using SSL (https://). I have not found an appropriate answer in the Internet.</p>
  
  <p>Everybody says about TIdSSLIOHandlerSocket, but I have only TIdSSLIOHandlerSocketOpenSSL.
  I have an error  'could not load SSL library' if I use TIdSSLIOHandlerSocketOpenSSL.
  Some people say it needs a library, but the most even do not mention about it. Do I need to use libraries from here <a href="http://www.indyproject.org/sockets/SSL.EN.aspx" rel="nofollow">http://www.indyproject.org/sockets/SSL.EN.aspx</a> ?</p>
  
  <p>I have those DLLs in program's folder. According to: <a href="http://edn.embarcadero.com/article/31279" rel="nofollow">http://edn.embarcadero.com/article/31279</a> "At runtime, Indy attempts to load libeay32.dll and ssleay32.dll." I do not know from where Indy tries to load the DDLs -> I have an error: 'Could not load SSL library.'</p>
  
  <pre><code>procedure TForm1.FormCreate(Sender: TObject);
      var  UpdateMemoryStream:tmemorystream;
      begin
      try
      UpdateMemoryStream:=TMemoryStream.Create;
                  try
                  idhttp2.Get('https://example.com/list.rar',UpdateMemoryStream); //I have: Exception class EIdOSSLCouldNotLoadSSLLibrary with message 'Could not load SSL library.'
                  except
                      on E : Exception do 
                      begin showmessage('Error: '+E.Message); 
                      end;
                  end;
      UpdateMemoryStream.SaveToFile('d:\1.rar');
      finally
      UpdateMemoryStream.Free;
      end;
      end;
  </code></pre>
  
  <p>Why do I have this error?
  I have Delphi 2010.</p>