Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing and registering win32 OpenSSL libraries

My application depends on OpenSSL libraries (through Qt networking modules; you can't compile it into Qt statically, because of legal issues)

There's this project - Win32 OpenSSL

Seems like all I need is to copy the two dlls into System32 and register them.

copy ssleay32.dll %WINDIR%\System32\ssleay32.dll
copy libeay32.dll %WINDIR%\System32\libeay32.dll
regsvr32.exe /s %WINDIR%\System32\ssleay32.dll
regsvr32.exe /s %WINDIR%\System32\libeay32.dll

And indeed, that has worked on a couple of machines in the office (my app began working correctly with https after the operation). Those have lot's of stuff installed on them, so it may interfere.

Still it does not work on a clean virtual machine under VMWare.

Though when I install Tortoise SVN under it (which ships with OpenSSL too) everything gets fine. What is the proper way of installing openssl into system?

note: Qt networking module has it's own certificate authorities list.

like image 264
Maleev Avatar asked May 25 '09 11:05

Maleev


2 Answers

Just put the DLLs in your app's installation folder. There is nothing to register (and you cannot use regsvr32 anyway, as OpenSSL does not implement ActiveX/COM servers, which is what regsvr32 is meant for).

like image 157
Remy Lebeau Avatar answered Oct 20 '22 17:10

Remy Lebeau


Maybe there are further dependencies that these two DLLs have that SVN has installed for you...

Trying using depends to see which DLLs the OpenSSL DLLs use, and make sure those are installed on your clean VMware.

like image 27
Assaf Lavie Avatar answered Oct 20 '22 19:10

Assaf Lavie