SSLPassPhraseDialog for virtualhost in apache

Hi,

when you have several virtualhosts with SSL enabled and also, the certificate has been generated with a pass phrase, you need to use SSLPassPhraseDialog to print to apache the password each time it starts, the problem comes as this directive can only be declared 1 time in the general configuration, so to use several password for each SSL generated, you can use this code:

#!/bin/sh

PASS1=”password1″
PASS2=”password2″

case $1 in
www.url1.com:443) echo $PASS1;;
www.url2.com:443) echo $PASS2;;
esac

exit 0

just replace the passwords and url with the one configured on your webserver, set them execution permission and add this to your apache conf:

SSLPassPhraseDialog exec:/path/to/bash/file

Regards,

Shadow.

 

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Post

Still quiet here.sas

Leave a Response