Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.

Public Report
Report From: Delphi-BCB/Install/Files    [ Add a report in this area ]  
Report #:  100968   Status: Open
Provide 64-bit versions of SSLEAY and LIBEAY DLLs
Project:  Delphi Build #:  16.0
Version:    16.0 Submitted By:   Bob Swart
Report Type:  Suggestion / Enhancement Request Date Reported:  11/11/2011 1:04:35 PM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   288759
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
See also http://www.bobswart.nl/Weblog/Blog.aspx?RootId=5:5039

If you deploy 32-bit DataSnap servers, using the RSA and PC1 filters, then you must also deploy two Indy specific OpenSSL DLLs: libeay32.dll and ssleay32.dll ·or make sure they already exist somewhere in the path of the server machine. These two DLLs are needed for the RSA filter (which encrypts the password used by the PC1 filter). Without these two DLLs, any client who wants to connect to the server will get an ?onnection Closed Gracefully·message, because the server was unable to load the two DLLs to start the RSA filter to encrypt the PC1 keys, etc.

When Delphi is installed, three 32-bit versions of the OpenSLL DLLs can be found on your machine (actually all three slightly different):

C:\Program Files\CollabNet
C:\Program Files\Embarcadero\RAD Studio\9.0\bin\SubVersion
C:\Program Files\FinalBuilder 7 XE2

Even on a 64-bit Windows machine, I could find no 64-bit version of OpenSSL, other than on the OpenSSL site. So, I had to look for them on the internet ;-)
You can find the 64-bit version of OpenSSL 0.9.8g for Windows for the AMD64 instruction set as AMD64-Win64OpenSSL-0_9_8g.zip. This includes the .LIB and .EXP files plus headers from the inc32 directory.
In this AMD64-Win64OpenSSL-0_9_8g.zip file, you'll also find libeay32.dll and ssleay32.dll. Note that these are 64-bit versions of the OpenSLL DLLs, having the same name as the 32-bit counterparts. Make sure they do not end up in your 32-bit Windows directory. In fact, you may want to make sure that they are in the directory of your 64-bit DataSnap Server and/or 64-bit DataSnap Client only.

Please provide the 32-bit and 64-bit versions of the SSLEAY and LIBEAY DLLs with Delphi Enterprise.
Steps to Reproduce:
If you deploy 32-bit DataSnap servers, using the RSA and PC1 filters, then you must also deploy two Indy specific OpenSSL DLLs: libeay32.dll and ssleay32.dll ·or make sure they already exist somewhere in the path of the server machine. These two DLLs are needed for the RSA filter (which encrypts the password used by the PC1 filter). Without these two DLLs, any client who wants to connect to the server will get an ?onnection Closed Gracefully·message, because the server was unable to load the two DLLs to start the RSA filter to encrypt the PC1 keys, etc.

When Delphi is installed, three 32-bit versions of the OpenSLL DLLs can be found on your machine (actually all three slightly different):

C:\Program Files\CollabNet
C:\Program Files\Embarcadero\RAD Studio\9.0\bin\SubVersion
C:\Program Files\FinalBuilder 7 XE2

Even on a 64-bit Windows machine, I could find no 64-bit version of OpenSSL, other than on the OpenSSL site. So, I had to look for them on the internet ;-)

You can find the 64-bit version of OpenSSL 0.9.8g for Windows for the AMD64 instruction set as http://www.indyproject.org/Sockets/fpc/AMD64-Win64OpenSSL-0_9_8g.zip. This includes the .LIB and .EXP files plus headers from the inc32 directory.

In this AMD64-Win64OpenSSL-0_9_8g.zip file, you'll also find libeay32.dll and ssleay32.dll. Note that these are 64-bit versions of the OpenSLL DLLs, having the same name as the 32-bit counterparts. Make sure they do not end up in your 32-bit Windows directory. In fact, you may want to make sure that they are in the directory of your 64-bit DataSnap Server and/or 64-bit DataSnap Client only.

Workarounds
None
Attachment
None
Comments

Luigi Sandon at 11/12/2011 9:32:08 AM -
DO NOT download and use 0.9.8g. It is a four years old realease and has many known security issues and bugs (http://www.openssl.org/news/vulnerabilities.html)

Download the actual release from http://www.slproweb.com/products/Win32OpenSSL.html (it has both 32 and 64 bit Windows OpenSSL builds)

Luigi Sandon at 11/12/2011 9:40:44 AM -
There are also up to date precompiled DLLs to be used with Indy here: http://indy.fulgan.com/SSL/, including 64 bit releases.

Server Response from: ETNACODE01