I added this to ssl.conf:
SSLPassPhraseDialog exec:/usr/bin/ssl_passphrase.sh
Then I created the following file:
Code:
-rw-r--r-- 1 root root 26 2008-09-22 12:55 /usr/bin/ssl_passphrase.sh
Code:
mail:/var/log/apache2# cat /usr/bin/ssl_passphrase.sh
#!/bin/sh
echo "PASSwOrD123"
I can run the file I just created:
Code:
mail:/var/log/apache2# sh /usr/bin/ssl_passphrase.sh
PASSwOrD123
Then I attempted to "restart" Apache:
mail:/var/log/clamav# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...[Mon Sep 22 12:55:45 2008] [warn] module ssl_module is already loaded, skipping
waiting [Mon Sep 22 12:55:47 2008] [warn] module ssl_module is already loaded, skipping
failed!
Received the following in my logs:
mail:/var/log/apache2# tail error.log
[Mon Sep 22 12:55:47 2008] [error] Init: Pass phrase incorrect
[Mon Sep 22 12:55:47 2008] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
[Mon Sep 22 12:55:47 2008] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Mon Sep 22 12:55:47 2008] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Mon Sep 22 12:55:47 2008] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib
[Mon Sep 22 12:56:19 2008] [error] Init: Pass phrase incorrect
[Mon Sep 22 12:56:19 2008] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
[Mon Sep 22 12:56:19 2008] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Mon Sep 22 12:56:19 2008] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Mon Sep 22 12:56:19 2008] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib