Ask a Question

General Information ID : INFO1941

Managed PKI for SSL - Installation Instruction for Apache

Description

 
This document provides instructions for installing SSL Certificates for Apache. If unable to use these instructions for the Apache server, Symantec recommends to contact either the vendor of your software or an organization that supports Apache-SSL.

Watch a video demo to easily install an SSL Certificate on an Apache server
 

Note: If you are unable to view the video player, please click here to view from the video's web page.

 
NOTE: If the Apache server is being configured to support SSL and Client Authentication please see this solution.
 
Step 1: Download the updated Symantec Intermediate CA certificate
 
  1. Download the Intermediate CA certificate
  2. Select the appropriate Intermediate CA certificate for your SSL Certificate type.
    NOTE: If you are not sure which certificate you have purchased, follow the steps from this link.
  3. Copy the Intermediate CA certificate and paste it on a Notepad.
  4. Save the file as intermediate.crt
  5. This file can be placed in the same directory as the SSL Certificate. For example: /usr/local/ssl/crt
     
Step 2: Install the SSL Certificate
  1. The Symantec certificate will be sent by email. The certificate is available as a download link, an attachment (Cert.cer), and pasted at the bottom of the email body.
  2. If using the certificate in the body of the email, copy and paste it into a text file using a plain text editor such as Vi or Notepad.

    The text file should look like:
    -----BEGIN CERTIFICATE-----
    [encoded data]
    -----END CERTIFICATE-----

     
  3. Make sure there are 5 dashes to either side of the BEGIN CERTIFICATE and END CERTIFICATE and that no white spaces,
    extra line breaks or additional characters have been inadvertently added.

    NOTE: Click here for steps to download the certificate from your  Managed PKI for SSL subscriber services page.
    Please select X.509 as a certificate format and copy only the End Entity Certificate.
     
  4. To follow the naming convention for Apache, rename the certificate filename with the .crt extension. For example: public.crt
  5. Copy the Certificate into the directory that you will be using to hold the certificates. For example: /usr/local/ssl/crt/.
 
Step 3: Configure the Server
 
         NOTE: Some instances of Apache contain both a httpd.conf and ssl.conf file. Enter or amend the httpd.conf or the ssl.conf with
         the bellow directives. Do not enter both as there will be a conflict and Apache may not start.
  1. In order to use the key pair, the httpd.conf or ssl.conf file will need to be updated.
  2. In the Virtual Host section of the httpd.conf or ssl.conf file, verify that there are the following 3 directives within this Virtual Host.

    Please add them if they are not present: 

    SSLCertificateFile /usr/local/ssl/crt/public.crt  

    SSLCertificateKeyFile /usr/local/ssl/private/private.key  

    SSLCertificateChainFile /usr/local/ssl/crt/intermediate.crt

    NOTESome versions of Apache will not accept the SSLCertificateChainFile directive. Try using SSLCACertificateFile instead.

    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 you are using a different location and certificate file names than the example above (which most likely you are) change the path and filename to reflect your server.
     
  1. Save the httpd.conf file and restart Apache. You can most likely do so by using the apachectl script: 

    apachectl stop  

    apachectl startssl
     
  1. You should now be set to start using the Symantec certificate with your Apache-SSL Server.
  2. To verify if your certificate is installed correctly, use the Symantec Installation Checker
 

Apache-SSL
 
          For more information, see the Apache Support website.