views:

31

answers:

0

OK, ladies and gentlemen. If you could just read the whole thing before asking "Why would you want to do that!?!", I'd be much obliged ;)

I am writing a PHP script to pull information from an LDAP server over LDAPS. I am using PHP 5.3, OpenLDAP and OpenSSL 0.9.7l (28 Sep 2006) and Apache 2.2 on a Windows 2003 server.

I have one instance of Apache running smoothly with the PHP script connecting to my LDAP server over LDAPS, extracting the relevant information required and processing it correctly. This bit works. However - it is a live production instance so there's no development allowed on there.

There are also five sandbox environments for development purposes which all talk to the LDAP server as well. All over LDAPS.

My problem is that I have to have an instance of Apache and PHP for each sandbox, rather than grouping all the environments into one. This is because I cannot figure out how to get Apache to run with six different sets of certificates. The live environment needs a cert to communicate over LDAPS, and each of the sandbox instances needs its own cert in order to speak LDAPS, too.

Can anyone tell me how I can get Apache, PHP and OpenSSL to all play nicely so that I can have exactly one http server running 6 instances of the script but each instance using its own certificate in the LDAPS process?