Page 1 of 1

CentOS 8 mod_ssl syntax error

Posted: 2019/09/25 15:27:31
by arcdetriomphe
Action:

yum install httpd mod_ssl

httpd -t

Result:

AH00526: Syntax error on line 85 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty

Re: CentOS 8 mod_ssl syntax error

Posted: 2019/09/25 20:15:24
by TrevorH
Looks like that's a change that now requires you to generate your own self signed cert (or a real one) rather than using a generic "snake-oil" one like previous releases.

Re: CentOS 8 mod_ssl syntax error

Posted: 2019/09/25 20:57:13
by arcdetriomphe
I just checked. In CentOS 7, installing mod_ssl creates /etc/pki/tls/certs/localhost.crt and /etc/pki/tls/private/localhost.key for you.