Chapter 5. Online Certificate Status Protocol
5.1. Configuring Apache HTTP Server for SSL Connections Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Procedure 5.1. Configure Apache HTTP Server for SSL Connections
- Install mod_ssl using the following command:
yum install mod_ssl
# yum install mod_sslCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Edit
JWS_HOME/httpd/conf.d/ssl.conf, and addServerName,SSLCertificateFile, andSSLCertificateKeyFile:<VirtualHost _default_:443> ServerName www.example.com:443 SSLCertificateFile /etc/pki/tls/certs/localhost.crt SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
<VirtualHost _default_:443> ServerName www.example.com:443 SSLCertificateFile /etc/pki/tls/certs/localhost.crt SSLCertificateKeyFile /etc/pki/tls/private/localhost.keyCopy to Clipboard Copied! Toggle word wrap Toggle overflow ServerNamemust match the Common Name (CN) of the SSL certificate. If theServerNamedoes not match the CN, client browsers display domain name mismatch errors.- The
SSLCertificateFileis the private key associated with the certificate (the public key). - Verify that the Listen directive in the
ssl.conffile 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.
- Restart httpd using the following command:
service httpd restart
# service httpd restartCopy to Clipboard Copied! Toggle word wrap Toggle overflow