无法使用SSL启动httpd服务

有一个问题,我已经在Centos 5上安装了新的证书,并修改了以下几行的conf文件:

SSLCertificateFile /etc/pki/tls.certs/name.crt

SSLCertificateKeyFile /etc/pki/tls/private/name.key

SSLCACertificateFile /etc/pki/tls/certs/group.ca-bundle

但每次我开始httpd服务我得到以下内容:

> sudo service httpd start > Starting httpd: Apache/2.2.15 mod_ssl/2.2.15 (Pass Phrase Dialog) > Some of your private key files are encrpyted for security reasons. > In order to read them you have to provide the pass phrases. > Server servername.co.uk: 443 (RSA) > Enter pass phrase: > OK: Pass Phrase Dialog successful. [FAILED] 

(只有CentOS的基础知识,请原谅我的愚蠢!)

所以问题是什么是失败? 我在哪里可以find相关的日志告诉我这个?

使用debug-loglevel手动运行httpd二进制文件,查看是否可以从中获取更多信息。

httpd -e debug

两种可能的解决方

  1. 从证书使用证书密码短语
  2. 将通行短语添加到您的apacheconfiguration – 请参阅https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslpassphrasedialog