Server should be SSL-aware but has no certificate

运维配置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>



重启成功

你可能感兴趣的:(SSL-aware)