views:

1514

answers:

4

I've been trying to SSL working on my IW program for the last little while and I keep running up against the 'Could not load SSL Library'. I've followed every piece of advice I could find on the subject, but still no joy. I've tried the suggested DLLs in both the local directory and in system32.

Does anyone have a definitive answer about what OpenSSL DLLs I should be using? And what build of them? Or any other ideas at all?

Indy: updated to the most recent snapshot yesterday IntraWeb: stock D2007 installed

This is running on a Vista machine, if that makes any difference.

TIA,

Trevor

+1  A: 

You need the OpenSSL dlls (0.9.8i worked for me, but I'm not using Vista), which you can download here (as I think you're suggesting, the Indy dlls don't work with IW9, which is the version bundled with D2007).

After installation, copy ssleay32.dll and libeay32.dll from system32 to your application directory.

If it still doesn't work:

  • is your servercontroller's ssl port set to 443?
  • does your cert pw match your servercontroller's ssl cert pw?
  • is servercontroller.sslversion set to sslv23?
  • have you tried compiling/running the AtoZed demo application for SSL (standalonessl)?

Hope this helps.

EDIT: once you get this working, you'll want to change sslversion to sslv3, and get users to turn off v2.

Argalatyr
A: 

Thanks for the answers so for!

Yeah - these are the dlls I've installed as well. I've rechecked the settings, and everything seems to be as it should be. I'm using the test certs from the AToZed site.

The demo has the same problem. Everything compiles properly, but it dies on start up with this error.

So, do all of these problems return an error message "Could not load SSL Library"? That could make diagnosing this a little more difficult.

Thanks!

Trevor Oke
I wonder if Vista is the problem? If you had a virtual machine (VMware is my friend!) running XP, you might be able to get something running in XP. Getting to place where things are working will make it easier to determine the problem. Best of luck, and if you get this working please post.
Argalatyr
+1  A: 

In a response today to the same question in the intraweb forum on the Embarcadero newsgroups, Chad Z. "Kudzu" Hower posted this link (without any explanation - just the link).

That page provides this link to a special build of the SSL libraries.

Hope this helps.

Argalatyr
It does - thanks much. I'm going to play around with that this afternoon.
Trevor Oke
+1  A: 

SOLVED:

It looks like the problem was a bpl floating about on my machine.

Here are the steps I took in case anyone else is having difficulty with getting the standalone server to run with D2007 and the pre-installed libraries:

  1. Remove all traces of Indy from your machine - there's a howto on the Indy site somewhere;
  2. Download the Indy 10 trunk from the subversion repository
  3. Install Indy according to the instructions;
  4. Download the latest IW9 from atozed - you'll need a key;
  5. Install it - let it clobber your current installation;

now, for the OpenSSL DLLs:

  1. Get them from here: http://www.slproweb.com/download/Win32OpenSSL_Light-0_9_8i.exe
  2. these are working well for me;
  3. Make sure your firewall is letting port 443 through (or whatever you choose);

At this point, I was able to compile and run the demo and my app.

Thanks for all the help.

Trevor

Trevor Oke