Apache server ssl installation


                             Apache server ssl installation step

1. copy your domain certificate and intermediate certificates to a folder on the server with the private key like /etc/sslcert/ssl.crt

2. Edit your Apache configuration to reference these files. The exact configuration file you will edit will depend on your version of Apache, your OS platform, and/or the method used to install Apache. In Apache 1.3, you will most likely edit the main httpd.conf file. In Apache 2.x, you will most likely edit the ssl.conf file.

4. Now open ssl.conf  file  on this location  /etc/httpd/conf.d
For example:-

Note:-  check below  ssl configuration  in ssl.conf file.


   LoadModule ssl_module modules/mod_ssl.so

    Listen 443

    <VirtualHost _default_:443>

    #   Server Certificate:

  SSLCertificateFile /etc/ssl/certs/mysitename.crt

     #   Server Private Key:

  SSLCertificateKeyFile /etc/ssl/certs/mysitename.key

   #   Server Certificate Chain:

  SSLCertificateChainFile /etc/ssl/certs/ca-bundle.crt



6 .Change the names of the files and paths to match your certificate files:
  1. SSLCertificateFile should be your primary certificate file for your domain name.
  2. SSLCertificateKeyFile should be the key file generated when you created the CSR.
  3. SSLCertificateChainFile should be the intermediate certificate file (if any) that was supplied by your certificate authority

            7. Save the changes and exit the text editor.

8.        8.  Restart Apache services.





No comments:

Post a Comment