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

Procedure 9.1. To configure httpd for ssl connections:

  1. Install mod_ssl using the following command:
    # rpm -qa | grep mod_ssl
  2. Edit the HTTPD_HOME/conf.d/ssl.conf file and add ServerName, SSLCertificateFile, and SSLCertificateKeyFile
     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
    
    1. ServerName must match the Common Name (CN) of the SSL certificate. If the ServerName does not match the CN, the client browsers display a message "domain mismatch".
    2. The SSLCertificateFile is the private key associate with the certificate (the public key).
    3. 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.
  3. Restart httpd using the following command:
    # service httpd restart
Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2026 Red Hat
Retour au début