码迷,mamicode.com
首页 > 其他好文 > 详细

Server should be SSL-aware but has no certificate

时间:2015-03-17 18:21:58      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:

运维配置ssl后导致apache无法启动,报错如下

[Tue Mar 17 16:23:36 2015] [error] Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0)



解决方案:

<virtualhost *:443>
  ...
  SSLEngine on
  SSLCertificateFile /etc/pki/tls/certs/localhost.crt
  SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
</virtualhost>



重启成功

Server should be SSL-aware but has no certificate

标签:

原文地址:http://my.oschina.net/linland/blog/388044

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!