Jump to content

Could not load SSL library


lema

Recommended Posts

Hello,
my first impression of linux apache module was great!
The FishFacts demo run excellent and very fast.

I also ported a small application with calendar, calendarpanel and DB (something like scheduler). 
There were some small incompatibilities with images and icons which solved with the using of UniNativeImageList. 

The only that I couldn’t sorted out, was the SSL usage.
reCaptcha died with “Could not load SSL library.
Does anyone have any experience on linux OpenSSL?


uniGUI 1.90.0.1537
Delphi 10.3.3
Apache on Debian 10

 

  • Upvote 1
Link to comment
Share on other sites

  • 1 year later...

You need version 1.0.2 of the OpenSSL to be able to make the standalone/hyper_server setup to work in Linux:

 

-rw-r----- 1 testapp unigui  2504576 Feb 13 22:33  libcrypto.so.1.0.2

-rw-r----- 1 testapp unigui   431232 Feb 13 22:32  libssl.so.1.0.2

 

Put this in the same directory as your standalone/hyper_server binary and make sure your binary has read access. My application (service) is run under the "testapp" account in this example.

 

I used certbot to create free letsencrypt certificates and use apache (on port 80) as a validation server.

sudo certbot certonly --apache -d mydomain.com -d www.mydomain.com

Then setup the *.pem certificate files as described in the uniGUI manual. (/etc/letsencrypt/live/mydomain.com/*.pem)

 

I use Debian 11 and Delphi 11.

Link to comment
Share on other sites

  • 11 months later...

For Linux - HyperServer StandAlone. If anyone is looking for the collected libraries to run hyper_server under Linux - apply the lib.zip them - version 1.0.2k (copy and give the rights as written Scott)

These are OpenSSL files with CentOS7 - just put them next to your hyper_server

We use a certificate:

image.png.8d94494f5b98dc581bb0255e10c6c084.png

image.png.cab4e009a37f9f8e34f5d0be1a846ccd.png

The configuration is suitable for us for this:

object TUniHyperSSL
  SSL.Enabled = True
  SSL.SSLOptions.RootCertFile = 'root.pem'
  SSL.SSLOptions.CertFile = 'cert.pem'
  SSL.SSLOptions.KeyFile = 'key.pem'
  SSL.SSLOptions.Method = sslvSSLv23
  SSL.SSLOptions.SSLVersions = [sslvSSLv2, sslvSSLv3, sslvTLSv1, sslvTLSv1_1, sslvTLSv1_2]
  SSL.SSLOptions.Mode = sslmBoth
  SSL.SSLOptions.VerifyMode = []
  SSL.SSLOptions.VerifyDepth = 0
  SSL.SSLPassword = 'mypassword'
  SSL.SSLPort = 0
end
 

Lib.zip

  • Like 1
Link to comment
Share on other sites

  • 10 months later...

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