运行apache后显示ok却没有apache进程,查看error文件发现[error] Unable to configure RSA server private key错误
[error] Unable to configure RSA server private key错误解决方法
现象:
#service apache2 restart
* Restarting web server apache2 Apache/2.2.16 mod_ssl/2.2.16 (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 xdty.org:443 (RSA)
Enter pass phrase:
OK: Pass Phrase Dialog successful.
[ OK ]
解决如下:
应该是因为key有密码导致的,进入key目录,通过以下命令去除密码
openssl rsa -in my-server.key -out my-server.key
重启服务即可
发表评论