-
Language:
English
-
Language:
English
Red Hat Training
A Red Hat training course is available for Red Hat JBoss Web Server
Chapter 5. Online Certificate Status Protocol
5.1. Configuring Apache HTTP Server for SSL Connections
Procedure 5.1. Configure Apache HTTP Server for SSL Connections
- Install mod_ssl using the following command:
# yum install mod_ssl
- 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
ServerName
must match the Common Name (CN) of the SSL certificate. If theServerName
does not match the CN, client browsers display domain name mismatch errors.- The
SSLCertificateFile
is the private key associated with the certificate (the public key). - 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.
- Restart httpd using the following command:
# service httpd restart