1. Home
  2. Knowledge Base
  3. SSL Certificate Guides
  4. Install SSL Certificate
  5. Apache
  6. How to Install Your SSL Certificate on an Apache HTTP Web Server

How to Install Your SSL Certificate on an Apache HTTP Web Server

This guide provides step-by-step instructions for installing your certificate in Apache HTTP Server.

Note: As of version 2.4.8, the default configuration options have changed.


  1. Copy your certificate to your server. This includes your server certificate, private key, and an intermediate certificate, The private key would have been generated along with the certificate signing request (CSR); it may very well already be on the server. If the private key is lost, you will need to reissue your certificate. 
  2. Your server certificate can be obtained from the delivery e-mail.

3. Alternatively, you can get it from your GlobalSign Account by clicking “Edit” on your order and copying the Certificate PEM Format text from the details. 

The intermediate certificate used will vary depending on the product type. Click on your product type in our intermediate certificate section by clicking on the link below:


Install the Certificate:

Open your Apache configuration file for editing

This will generally be found in one of the following locations, depending on your OS:

On CentOS/RedHat:



On Debian/Ubuntu:



The configuration may be in a different location. Detailed mapping of configuration paths can be found on the Apache Wiki.

4. Configure your virtual host to use the certificate.

5. Locate the virtual host for your site:

<VirtualHost xxx.xxx.x.x:443>

    DocumentRoot /var/www/examplesite

    ServerName example.com

    ServerAlias www.example.com

    SSLEngine on

    SSLCertificateFile /path/to/examplesite.crt

    SSLCertificateKeyFile /path/to/privatekey.key

    SSLCertificateChainFile /path/to/intermediate.crt


 6. Point the following directives to the corresponding certificate:

  • SSLCertificateFile: This should point to your server certificate
  • SSLCertificateKeyFile: This should point to your server’s private key
  • SSLCertificateChainFile: This should point to the intermediate certificate for your product

Note: As of Apache 2.4.8

The SSLCertificateChainFile directive was deprecated and SSLCertificateFile was extended to support intermediate certificates.

Adding the intermediate certificate to the end of your certificate will create a chain file for your server.

7. Test your updated configuration:

Depending on your system, run the command:

apachectl configtest


apache2ctl configtest

This will detect any errors in your configuration such as mismatched public & private keys, or an incorrect path. 

8. Restart the Apache service

For older versions of Red Hat Enterprise Linux use init scripts as stated below:


Service httpd restart


Service apache2 restart

For Red Hat Enterprise Linux 7 or CentOS 7.0 use the following commands: 


Systemctl restart httpd.service


systemctl restart apache2.service

Note: Some Apache configurations may show an entry for SSLCACertificateFile. This field is only needed if you use Apache for client authentication. The SSLCACertificateFile would point to a CA certificate or directory of CA certificates that issue certificates you accept for client authentication. 

Get in touch with us for a non-binding quote

We will contact you as soon as possible.

* Please use a work email address to register

Was this article helpful?