Apache Httpd SSL Install

Dec 24, 2016

Apache  Httpd SSL Install

 

1) . Copy “yourdomain.crt” and “yourdomain.cabundle” to the directory in which you plan to store your certificates.

2 . Open your httpd.conf file (some installations keep the SSL section separately in the ssl.conf file) using a text editor and locate the virtual host section for the site for which the SSL Certificate will secure. 

Your virtual host section will need to contain the following directives:

  • SSLCACertificateFile – This will need to point to the appropriate root CA certificates you previously obtained above (the one you called "yourdomain.cabundle")
  • SSLCertificateFile – This will need to point to the end entity certificate (the one you have called "yourdomain.crt")
  • SSLCertificateKeyFile – This will need to point to the private key file associated with your certificate.

5. Save the changes to the file and quit the text editor

6. Restart apache.

Here is an example of the lines and their path in Apache:

SSLCACertificateFile /etc/ssl/certs/funiodemo.cabundle

SSLCertificateFile /etc/ssl/certs/funiodemo.com.crt

SSLCertificateKeyFile /etc/ssl/private/funiodemo.com.key

NOTE: Some versions of Apache will not accept the SSLCertificateChainFile directive. Try using SSLCACertificateFileinstead.

For example

 



NOTE: The first directive tells Apache how to find the Certificate File, the second one where
the private key is located, and the third line the location of the intermediate certificate.
If using a different location and certificate file names than the example above
the location and file names will need to be updated to the path reflected on the server.

Have any Questions

If you have any questions, feel free to call us