Fail to start httpd due to SSLCertificateFile error

I am deploying another OOD instance for another clusters on CentOS 7.5. After the installation I run the command sudo systemctl start httpd24-httpd, the follow error occured:

-- Unit httpd24-httpd.service has begun starting up.
Jun 14 09:23:11 cu390 update_ood_portal[29970]: No change in Apache config.
Jun 14 09:23:11 cu390 httpd-scl-wrapper[29993]: AH00526: Syntax error on line 100 of /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf:
Jun 14 09:23:11 cu390 httpd-scl-wrapper[29993]: SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
Jun 14 09:23:11 cu390 systemd[1]: httpd24-httpd.service: main process exited, code=exited, status=1/FAILURE
Jun 14 09:23:11 cu390 httpd-scl-wrapper[29996]: AH00526: Syntax error on line 100 of /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf:
Jun 14 09:23:11 cu390 httpd-scl-wrapper[29996]: SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
Jun 14 09:23:11 cu390 systemd[1]: httpd24-httpd.service: control process exited, code=exited status=1
Jun 14 09:23:11 cu390 systemd[1]: Failed to start The Apache HTTP Server.

As our users are supposed to access the instance via ssh-tunnel, I don’t think it is necessary to setup HTTPS (at least for now). Is there any way that I can workaround this problem?

My OOD is v3.0.1, I don’t see this error when I setup another instance that uses v3.0.0

You have a couple options:

  • create and use real certificates
  • if use plain text (no ssl), you’ll run into this issue below, so you’ll have to reconfigure your instance to allow for plain text http.

Work around the issue by running the following command: sudo openssl req -newkey rsa:2048 -nodes -keyout /etc/pki/tls/private/localhost.key -x509 -days 365 -out /etc/pki/tls/certs/localhost.crt

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.