Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 9. Configuring httpd for SSL connections
9.1. Configuring httpd for SSL connections Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
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.conffile and addServerName,SSLCertificateFile, andSSLCertificateKeyFileExample SSL configuration <VirtualHost _default_:443> #ServerName www.example.com:443 SSLCertificateFile /etc/pki/tls/certs/localhost.crt SSLCertificateKeyFile /etc/pki/tls/private/localhost.keyServerNamemust match the Common Name (CN) of the SSL certificate. If theServerNamedoes not match the CN, the client browsers display a message "domain mismatch".- The
SSLCertificateFileis the private key associate with the certificate (the public key). - Verify that the Listen directive in the
ssl.conffile 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