Could not load SSL library - dll not found

ondertol

In my Delphi (10.3 community edition) program, I try to use Indy with the OpenSSL library, but I receive an error

Could not load SSL library

My OpenSSL library is version 1.0.2u and I put the libeay32.dll and ssleay32.dll files in my program EXE directory, and in Windows\SYSWOW64 and Windows\System32.

I have installed the Embarcadero Delphi Patch RS1033_Indy_SSL_Patch.

After the exception, I call WhichFailedToLoad() and the result is

Failed to load libeay32.dll

This is a simple program that raises the exception:

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 <> 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;

Can you help me to solve the problem?

Remy Lebeau

I put the libeay32.dll and ssleay32.dll files in my program EXE directory

That is fine. That is the 1st place the OS will look for them.

and in Windows\SYSWOW64 and in Windows\System32

Don't do that! Non-system files do not belong there. ESPECIALLY if you are putting the same files in both folders, since Windows\SYSWOW64 is meant only for 32bit files and Windows\System32 is meant only for 64bit files.

Failed to load libeay32.dll

That means Windows could not load that DLL into memory at all. Probably because it couldn't find the dependent ssleay32.dll file, but more likely because you mixed up the 32bit and 64bit versions of the DLLs. If your app is compiled as a 32bit EXE, you must use the 32bit version of both DLLs. If your app is compiled as a 64bit EXE, you must use the 64bit version of both DLLs.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found

From Dev

Unable to load dynamic library php_zmq.dll - The specified module could not be found

From Dev

OMNeT++, <!> Error: Cannot load library '../../src//libveins.dll': The specified procedure could not be found

From Dev

Dll Library was found but could not be loaded in FME

From Dev

could not load library plpython3.dll

From Dev

Error "Could not load SSL library" on Android with TidHTTP

From Dev

Python: "ImportError: DLL load failed: The specified module could not be found." Problems when importing ffn (finance library for python)

From Dev

vim could not load library python27.dll

From Dev

ImportError: DLL load failed: The specified module could not be found for numpy

From Dev

pyodbc ImportError: DLL load failed: The specified module could > not be found

From Dev

Python: ImportError: DLL load failed: The specified module could not be found

From Dev

Pycharm: DLL load failed: The specified procedure could not be found

From Java

Tensorflow error : DLL load failed: The specified procedure could not be found

From Java

PIL: DLL load failed: specified procedure could not be found

From Java

ImportError: DLL load failed: The specified module could not be found

From Java

ImportError: DLL load failed: The specified module could not be found

From Dev

Pyinstaller: Import Error: DLL load failed: The specified module could not be found

From Dev

NLTK ImportError: DLL load failed: The specified module could not be found

From Dev

ElastAlert ImportError: DLL load failed: The specified procedure could not be found

From Dev

Scipy ImportError: DLL load failed: The specified module could not be found

From Dev

PyQt5: The DLL load failed: the specified module could not be found

From Dev

Pyinstaller ImportError: DLL load failed: The specified module could not be found

From Dev

Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found

From Dev

DLL load failed: The specified module could not be found while importing scipy

From Dev

skimage - ImportError: DLL load failed: The specified module could not be found

From Dev

pyopenms: DLL load failed: The specified procedure could not be found

From Dev

DLL load failed: The specified module could not be found PYTHON

From Dev

ImportError: DLL load failed: The specified module could not be found (sklearn)

From Dev

PySide2: DLL load failed: The specified procedure could not be found

Related Related

  1. 1

    Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found

  2. 2

    Unable to load dynamic library php_zmq.dll - The specified module could not be found

  3. 3

    OMNeT++, <!> Error: Cannot load library '../../src//libveins.dll': The specified procedure could not be found

  4. 4

    Dll Library was found but could not be loaded in FME

  5. 5

    could not load library plpython3.dll

  6. 6

    Error "Could not load SSL library" on Android with TidHTTP

  7. 7

    Python: "ImportError: DLL load failed: The specified module could not be found." Problems when importing ffn (finance library for python)

  8. 8

    vim could not load library python27.dll

  9. 9

    ImportError: DLL load failed: The specified module could not be found for numpy

  10. 10

    pyodbc ImportError: DLL load failed: The specified module could > not be found

  11. 11

    Python: ImportError: DLL load failed: The specified module could not be found

  12. 12

    Pycharm: DLL load failed: The specified procedure could not be found

  13. 13

    Tensorflow error : DLL load failed: The specified procedure could not be found

  14. 14

    PIL: DLL load failed: specified procedure could not be found

  15. 15

    ImportError: DLL load failed: The specified module could not be found

  16. 16

    ImportError: DLL load failed: The specified module could not be found

  17. 17

    Pyinstaller: Import Error: DLL load failed: The specified module could not be found

  18. 18

    NLTK ImportError: DLL load failed: The specified module could not be found

  19. 19

    ElastAlert ImportError: DLL load failed: The specified procedure could not be found

  20. 20

    Scipy ImportError: DLL load failed: The specified module could not be found

  21. 21

    PyQt5: The DLL load failed: the specified module could not be found

  22. 22

    Pyinstaller ImportError: DLL load failed: The specified module could not be found

  23. 23

    Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found

  24. 24

    DLL load failed: The specified module could not be found while importing scipy

  25. 25

    skimage - ImportError: DLL load failed: The specified module could not be found

  26. 26

    pyopenms: DLL load failed: The specified procedure could not be found

  27. 27

    DLL load failed: The specified module could not be found PYTHON

  28. 28

    ImportError: DLL load failed: The specified module could not be found (sklearn)

  29. 29

    PySide2: DLL load failed: The specified procedure could not be found

HotTag

Archive