CentOS 8 mod_ssl syntax error

Issues related to applications and software problems and general support
Post Reply
arcdetriomphe
Posts: 3
Joined: 2019/09/24 18:23:45

CentOS 8 mod_ssl syntax error

Post by arcdetriomphe » 2019/09/25 15:27:31

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

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 8 mod_ssl syntax error

Post by TrevorH » 2019/09/25 20:15:24

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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

arcdetriomphe
Posts: 3
Joined: 2019/09/24 18:23:45

Re: CentOS 8 mod_ssl syntax error

Post by arcdetriomphe » 2019/09/25 20:57:13

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.

Post Reply