Bug 1764838

Summary: default https certs do not exist
Product: Red Hat Enterprise Linux 8 Reporter: Jeroen <jeroenooms>
Component: httpdAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED NOTABUG QA Contact: RHEL Stacks Subsystem QE <rhel-stacks-subsystem-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: jorton, luhliari
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-02 14:15:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeroen 2019-10-23 20:03:55 UTC
# Description of problem:

The default (snakeoil) SSL certs that are set in /etc/httpd/conf.d/ssl.conf do not exist on CentOS 8. I also cannot find out if/which package I should install to get these. 

# Version-Release number of selected component (if applicable):

CentOS 8.0

# How reproducible:

I used this container:

    docker run -it centos:8

And then run:

   yum install httpd-devel mod_ssl
   apachectl -DFOREGROUND


# Actual results:

    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

# Expected results:

     Starting httpd...

Comment 1 Joe Orton 2019-12-02 14:15:53 UTC
Yup, you need to run /usr/libexec/httpd-ssl-gencerts