How can i solve this Erorr Could not open SSL LIbray

880 Views Asked by At

Hey i am getting this error if i start my program. I am using Lazarus as plattform. I am trying to get the source code of the site with following code:

uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
  fphttpclient,openssl,fpopenssl,Buttons;   

s := TFPCustomHTTPClient.SimpleGet('https://freepascal.org'); 

In the end my programm should show me the source code in the programm. Thanks for your help:)

enter image description here

1

There are 1 best solutions below

2
On

Download OpenSSL binaries and copy the DLLs in your executable folder or somewhere on the path. Pay attention that there are a lot of OpenSSL versions and they are not always interchangeables! Be sure to download the correct one.

If you have already the OpenSSL installed, then use a tool like ProcessMonitor to spy on your own application to find out which DLL it tries to open and where it expect the DLL to be.