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]#

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据