Chapter 5. Online Certificate Status Protocol

download PDF

5.1. Configuring Apache HTTP Server for SSL Connections

Procedure 5.1. Configure Apache HTTP Server for SSL Connections

  1. Install mod_ssl using the following command:
    # yum install mod_ssl
  2. Edit JWS_HOME/httpd/conf.d/ssl.conf, and add ServerName, SSLCertificateFile, and SSLCertificateKeyFile:
    <VirtualHost _default_:443>
    SSLCertificateFile /etc/pki/tls/certs/localhost.crt
    SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
    1. ServerName must match the Common Name (CN) of the SSL certificate. If the ServerName does not match the CN, client browsers display domain name mismatch errors.
    2. The SSLCertificateFile is the private key associated with the certificate (the public key).
    3. Verify that the Listen directive in the ssl.conf file is correct as per your configuration. For example, if an IP address is specified, it must match the IP address the httpd service is bound to.
  3. Restart httpd using the following command:
    # service httpd restart
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.