-
Language:
English
-
Language:
English
Red Hat Training
A Red Hat training course is available for Red Hat JBoss Web Server
Chapter 9. Configuring httpd for SSL connections
9.1. Configuring httpd for SSL connections
Procedure 9.1. To configure httpd for ssl connections:
- Install mod_ssl using the following command:
# rpm -qa | grep mod_ssl
- Edit the
HTTPD_HOME/conf.d/ssl.conf
file and addServerName
,SSLCertificateFile
, andSSLCertificateKeyFile
Example SSL configuration <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, the client browsers display a message "domain mismatch".- The
SSLCertificateFile
is the private key associate with the certificate (the public key). - Verify that the Listen directive in the
ssl.conf
file is correct as per your setup. 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