Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to send SSL email but cannot load library...
#2
(05-05-2021, 09:58 AM)BosseB Wrote: However, when it runs I get an exception which logs this

Quote:ERROR: Exception during email send: Could not load SSL library.

What does Indy's WhichFailedToLoad() function report after that error occurs?

(05-05-2021, 09:58 AM)BosseB Wrote: But what is required on the Linux system for the SSL email to work?

OpenSSL 1.0.2 or earlier, if you are using TIdSSLIOHandlerSocketOpenSSL.

(05-05-2021, 09:58 AM)BosseB Wrote: On windows I think I had to get some dll to make this work...

Yes, ssleay32.dll and libeay32.dll. On Linux, libssl.so.<version> and libcrypto.so.<version> are used instead.

(05-05-2021, 09:58 AM)BosseB Wrote: After searching the web I found that there might be a ssl version clash here.
Installed on my RPi3 test machine is this:

Code:
$ openssl version -v
OpenSSL 1.1.1d  10 Sep 2019

TIdSSLIOHandlerSocketOpenSSL does not support OpenSSL 1.1.x. Try this experimental SSLIOHandler instead (I don't know if it has been tested on Linux, though).

(05-05-2021, 09:58 AM)BosseB Wrote: In another reply in the same thread there is a statement that FPC 3.2.0 fixes all of that, but I have FPC 3.2.0 + Lazarus 2.0.12 on my RaspberryPi and it still issues these errors!

Those fixes refer to FreePascal's own HTTP/OpenSSL implementation, not to Indy's.

Reply


Messages In This Thread
RE: Trying to send SSL email but cannot load library... - by rlebeau - 05-05-2021, 04:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)