Apache SSL - Certificate Installation: Apache & mod_ssl ?

| 2 1 2
Asked on 9/26/15, 4:04 PM

Installing your Certificate on Apache with mod_ssl

  1. Extract all of the contents of the ZIP file that was sent to you and copy/move them to your server. The extracted contents will typically be named: yourDomainName.crt and yourDomainName.ca-bundle 

    Note: If you received several .crt files in your ZIP file please use this article to make yourDomainName.ca-bundle

  2. Move all of the certificate related files to their appropriate directories. 

    A typical setup: 
    1. Move the Private Key that was generated earlier to the ssl.key directory, which is typically found in /etc/ssl/. This must be a directory which only Apache can access.

    2. Move the yourDomainName.crt and yourDomainName.ca-bundle to the ssl.crt directory, which is typically found in the /etc/ssl/ directory.
  3. Edit the file that contains the SSL configuration with your favorite text editor.
    Examples: nano, vi, pico, emacs, mousepad, notepad, notepad++, etc.

    Note: The location of this file may vary from each distribution. It will be referenced in the Apache global configuration file. Look for the lines starting with include.

  4. Apache Configuration File: 
    1. Fedora/CentOS/RHEL: /etc/httpd/conf/httpd.conf
    2. Debian and Debian based: /etc/apache2/apache2.conf

    SSL Configuration File: 

    Some possible names: 
    1. httpd-ssl.conf
    2. ssl.conf
    3. In the /etc/apache2/sites-enabled/ directory.

    Note: If need be please consult your distribuiton's documentation on Apache and SSL or navigate to the Apache Foundation'sApache2 Documentation.

  5. In the VirtualHost section of the file please add these directives if they do not exist. It is best to comment out what is already there and add the below entries. 

    1. SSLEngine on
    2. SSLCertificateKeyFile /etc/ssl/ssl.key/server.key
    3. SSLCertificateFile /etc/ssl/ssl.crt/yourDomainName.crt
    4. SSLCertificateChainFile /etc/ssl/ssl.crt/yourDomainName.ca-bundle ***

  6. *** Apache 1.x:
    Please use SSLCACertificateFile instead of SSLCertificateChainFile.

    Note: The above paths in the directives are only used as examples. Your server may have a different path and may need to be modified to suit your needs.

  7. Save your config file and restart the Apache service.
| 2 1 2
Answered on 9/26/15, 4:05 PM

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This forum is for HiTechnologia Employees & just Odoo general knowledge purpose only.

Read Guidelines

Question tools

3 follower(s)


Asked: 9/26/15, 4:04 PM
Seen: 3845 times
Last updated: 9/26/15, 4:05 PM