7 月 292013
 

启动Apache时,需输入生成SSL证书时Key文件的密码

[root@pfx conf]# apachectl start
Apache/2.2.24 mod_ssl/2.2.24 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.

Server www.example.com:443 (RSA)
Enter pass phrase:

OK: Pass Phrase Dialog successful.
[root@pfx conf]#

取消已含有密码的Key文件并重新生成

[root@pfx conf]# openssl rsa -in linuxcache.com.key -out linuxcache.com.2.key
Enter pass phrase for linuxcache.com.key:
writing RSA key
[root@pfx conf]#

 

linuxcache.com.2.key

SSLCertificateKeyFile “/usr/local/apache/conf/linuxcache.com.key”

SSLCertificateKeyFile “/usr/local/apache/conf/linuxcache.com.2.key”

[root@pfx conf]# vi extra/httpd-ssl.conf

[root@pfx conf]# apachectl stop
[root@pfx conf]# apachectl start
[root@pfx conf]# netstat -ltun |grep 443
tcp 0 0 :::443 :::* LISTEN
[root@pfx conf]#