Author Topic: [SOLVED] Could not initialize OpenSSL library  (Read 240 times)

Tomxe

  • Full Member
  • ***
  • Posts: 202
[SOLVED] Could not initialize OpenSSL library
« on: October 31, 2026, 09:02:32 am »
I uninstalled old Lazarus and installed a fresh copy of Lazarus. After lauching OPM I get:
"Could not initialize OpenSSL library"
I guess DLLs are missing. Which ones and where should I put them?

Also- perhaps OPM could be updated to use TlsLib4Pascal or mine XelSSL instead of OpenSSL? Then no DLLs would be required.
« Last Edit: October 31, 2026, 09:41:19 am by Tomxe »

paweld

  • Hero Member
  • *****
  • Posts: 1799
Re: Could not initialize OpenSSL library
« Reply #1 on: October 31, 2026, 09:30:28 am »
What version of FPC and bit depth are you using?
If you're using FPC 3.2.2, download:
- for 64-bit: https://wiki.overbyte.eu/arch/openssl-1.1.1w-win64.zip
- for 32-bit: https://wiki.overbyte.eu/arch/openssl-1.1.1w-win32.zip

If you're using FPC 3.2.3-fixes or later, download:
- for 64-bit: https://wiki.overbyte.eu/arch/openssl-3.0.22-win64.zip
- for 32-bit: https://wiki.overbyte.eu/arch/openssl-3.0.22-win32.zip

After unpacking, copy the DLL files to the Lazarus main directory
Best regards / Pozdrawiam
paweld

Tomxe

  • Full Member
  • ***
  • Posts: 202
Re: Could not initialize OpenSSL library
« Reply #2 on: October 31, 2026, 09:41:11 am »
Thank you, works!

Hobbit00

  • Jr. Member
  • **
  • Posts: 70
Re: [SOLVED] Could not initialize OpenSSL library
« Reply #3 on: October 31, 2026, 11:58:23 am »
Those release of OpenSSL are deprecated and over the EOL, means they are exposed to security risk.

paweld

  • Hero Member
  • *****
  • Posts: 1799
Re: [SOLVED] Could not initialize OpenSSL library
« Reply #4 on: October 31, 2026, 12:10:54 pm »
fpc 3.2.2 does not work with versions of OpenSSL newer than 1.1.1.
However, instead of OpenSSL 3.0.x, you can install 3.5.x, and it should work as well; I’ve listed the version that I’m certain works.

Even versions 3.5 and 4.0 are vulnerable to security risks. Version 3.0.22 was released about two months ago, so it’s relatively recent and is currently secure, despite having reached EOL.
Best regards / Pozdrawiam
paweld

Hobbit00

  • Jr. Member
  • **
  • Posts: 70
Re: [SOLVED] Could not initialize OpenSSL library
« Reply #5 on: October 31, 2026, 01:47:15 pm »
It's better to use the last LTS version (EOL 2030) that is the 3.5 (now release 3.5.9 of September 2026).

One can donwload here for Windows (digitally signed with EV): https://www.firedaemon.com/download-firedaemon-openssl

From here there are OpenSSL compiled libs for ALL platforms (Windows, Linux, Mac, Ios and Android) always digitally signed: https://github.com/TaurusTLS-Developers/OpenSSL-Distribution/releases#release-v3.5.9



 

TinyPortal © 2005-2018