Jump to content

Indy: SSL - library not found ..


erich.wanker

Recommended Posts

This is not a UniGui Problem .. but i hope someone can help me...

My Unigui App: Everything works fine on client-Server - until the one "Indy download function" ! ( from https -site ... )

  • on my System - it works (win10 32 Bit - Apache Webserver 32bit)
  • on Client System - it does NOT work (Win Server 2016 64 Bit OS - Apache Webserver 32bit)

 

I try to download the file with code:

procedure ....
var
  IdHTTP1: TIdHTTP;
  Stream: TMemoryStream;
  Url, FileName: String;
begin
  Url := 'https://....';
  FileName := mainform.datenpfad + 'index_download/' + 'xxx.csv';
  IdHTTP1 := TIdHTTP.Create(self);
  IdHTTP1.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(nil);

  Stream := TMemoryStream.Create;
  try
    IdHTTP1.Get(Url, Stream);
    Stream.SaveToFile(FileName);
  finally
    IdHTTP1.IOHandler.Free;
    Stream.Free;
    IdHTTP1.Free;
  end;

 

In htdocs folder  i have my UNIGUI.DLL 

i allso have the files from C:\Program Files\FMSoft\Framework\uniGUI\SSL  in the same folder like the unigui.dll

  •  ssleay32.dll
  •  libeay32.dll

i tryed both options (x64 / x86)

.. but i allways become message "SSL-Library not found" on the Clinet Server System (win 2016 Server)

 

Has anyone a Idea what is going wrong?

 

ThanX

Erich

 

Link to comment
Share on other sites

Got it :-)

Hard coding of ssl-dll storage-place was the solution... :-)

IdOpenSSLSetLibPath(mainform.datenpfad + 'index_download/');

The reason Why i had the problems: A other software produkt uses SSL-dlls of OpenSSL  ( but not the neseccary Indy-modified dlls) 

 

 

ThanX

Erich
 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...