Apache httpd failed to start with error "AH02311: Fatal error initialising mod_ssl, exiting"

Solution Verified - Updated -

Issue

  • We are getting below error while starting apache webservices.
apache.example.com apache_error_log: [Wed Dec 01 15:47:00.779501 2021] [ssl:emerg] [pid 41081:tid 139919567444096] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/|/usr/sbin/rotatelogs -l logs/ssl_error_log.%Y.%m.%d 86400 for more information
apache.example.com systemd: httpd.service: main process exited, code=exited, status=1/FAILURE
apache.example.com systemd: Unit httpd.service entered failed state.
apache.example.com systemd: httpd.service failed.

[Wed Dec 01 15:47:00.779491 2021] [ssl:emerg] [pid 41081:tid 139919567444096] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf.d/ssl.conf:7)

Environment

  • Red Hat Enterprise Linux 7.x
    • Apache (httpd)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content