Thursday, January 8, 2015

[error] Init: Unable to read pass phrase [Hint: key introduced or changed before restart?]

You can encounter the following error when you restart Apache:

[error] Init: Unable to read pass phrase [Hint: key introduced or changed before restart?]

You can automate entering the pass phrase for the private key

with the following configuration:

conf/extra/httpd-ssl.conf

#SSLPassPhraseDialog  builtin
SSLPassPhraseDialog  exec:/home/izeye/workspaces/izeye/openssl/pass.sh

pass.sh

#!/bin/bash
echo "1234"

chmod +x pass.sh

Without an execute permission, you will encounter the following error:

[error] Init: Pass phrase incorrect

Reference:
https://wiki.apache.org/httpd/RemoveSSLCertPassPhrase

No comments:

Post a Comment