title: Could not load SSL library - dll not found
body: <p>In my Delphi (10.3 community edition) program, I try to use Indy with the OpenSSL library, but I receive an error</p>
  <blockquote>
  <p>Could not load SSL library</p>
  </blockquote>
  <p>My OpenSSL library is version 1.0.2u and I put the <code>libeay32.dll</code> and <code>ssleay32.dll</code> files in my program EXE directory, and in <code>Windows\SYSWOW64</code> and <code>Windows\System32</code>.</p>
  <p>I have installed the Embarcadero Delphi Patch <a href="https://community.idera.com/developer-tools/b/blog/posts/rad-studio-10-3-3-indy-server-ssl-certificate-patch" rel="nofollow noreferrer">RS1033_Indy_SSL_Patch</a>.</p>
  <p>After the exception, I call <code>WhichFailedToLoad()</code> and the result is</p>
  <blockquote>
  <p>Failed to load libeay32.dll</p>
  </blockquote>
  <p>This is a simple program that raises the exception:</p>
  <pre><code>url := 'https://www.google.it';
  try
    Web := TIdHTTP.Create(nil);
    hIOHand := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
    hIOHand.SSLOptions.SSLVersions := [sslvTLSv1,sslvTLSv1_1,sslvTLSv1_2,sslvSSLv23];
    Web.IOHandler := hIOHand;
    Web.Request.UserAgent := INET_USERAGENT;       //Custom user agent string
    Web.RedirectMaximum := INET_REDIRECT_MAX;      //Maximum redirects
    Web.HandleRedirects := INET_REDIRECT_MAX &lt;&gt; 0; //Handle redirects
    Web.ReadTimeOut := INET_TIMEOUT_SECS * 1000;   //Read timeout msec
    try
      Sito := Web.Get(Url);
      Sito := DateToStr(Web.Response.LastModified) + Sito;
    except
      on e : exception do
        stg := WhichFailedToLoad();
    end;
  finally
    Web.Free;
  end;
  </code></pre>
  <p>Can you help me to solve the problem?</p>