Delphi 2010 - Failed to load SSL lib

I execute this code and get an error: failed to load SSL lib Class: EIdOSSLCouldNotLoadSSLLibrary

I do not use .net.

 var Client: TIdHTTP; tokenURL: String; begin client := TIdHTTP.Create(nil); try client.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(client); TIdSSLIOHandlerSocketOpenSSL(client.IOHandler).SSLOptions.Method := sslvSSLv23; client.HandleRedirects := False; client.Get('https://www.xxxxx.xx/portal/ILlogin?username=XXXXXX&password=XXXXXXXX&skin=yyyyyyyyyy&portal=GG', [300, 301, 302, 303, 305, 306, 307]); if client.Response.Location <> '' then tokenURL := client.Response.Location; finally client.Free; end; end; 
+4
source share
1 answer

The Indy WhichFailedToLoad() function in the IdSSLOpenSSLHeaders module will tell you why OpenSSL cannot be loaded. Either you do not have OpenSSL DLLs installed, or you have an incompatible version of the installed DLLs that do not have the functions that Indy is looking for. Try the DLLs that are available at Indy Fulgan mirror .

+7
source

Source: https://habr.com/ru/post/1432897/


All Articles