Can't start HTTPS Apache on CentOS 6
If you are getting an error like the one below, there's a simple solution.
[root@hostname ~]# /etc/init.d/httpd start Starting httpd: Syntax error on line 105 of /etc/httpd/conf.d/ssl.conf: SSLCertificateFile: file '/etc/pki/tls/certs/yourcertificate.crt' does not exist or is empty
The problem is that the SELinux policy is not allowing the apache process to see the keys. This should fix it:
[root@hostname ~]# restorecon -RvF /etc/pki