httpd with multiple ssl and password for every key automatically

Well to use this we must use the SSLPassPhraseDialog functionality of httpd Рapache .

Basically into ssl.conf we put this line or modify the existing one into

SSLPassPhraseDialog exec:/path/script

Where script is read/execute only by root.

And the script is

 

#!/bin/perl
$server = $ARGV[0];
#print $server;
if ($server eq ‘www.example.com:443’ || $server eq ‘www.example2.com:443’ ) {
print ‘password one’;
} elsif ($server eq ‘example3.com’) {
print ‘Password two’;
}

 

httpd with multiple ssl and password for every key automatically
Rate this post

Leave a Reply

Your email address will not be published. Required fields are marked *