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
Forum Moderator
Posts: 30558
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.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. 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

Return to “CentOS 8 - General Support”