Step one: Copy your certificate to file
You will receive an email from Positive SSL with the certificate in the email (yourdomainname.crt). When viewed in a text editor, your certificate will look something like:
Copy your Certificate into the directory that you will be using to hold your certificates. In this example we will use /etc/ssl/crt/. Both the public and private key files will already be in this directory. The private key used in the example will be labeled private.key and the public key will be yourdomainname.crt.
We recommend that you make the directory that contains the private key file only readable by root.
Step two: Install the Intermediate Certificate
You will need to install the chain certificate (intermediates) in order for browsers to trust your certificate. As well as your SSL Certificate (yourdomainname.crt) three other certificates, named UTN-USERFirst-Hardware.crt, AddTrustUTNServerCA.crt and PositiveSSLCA.crt, are also attached to the email from Positive SSL. Apache users will only require the intermediates AddTrustUTNServerCA.crt and PositiveSSLCA.crt certificates.
Firstly, create a 'bundle' file. To do this you will need to open the certificates with a text editor and add both of the certificate texts to that file, first the PositiveSSLCA.crt then the AddTrustUTNServerCA.crt and save this file as ca.txt
In the Virtual Host settings for your site, in the httpd.conf file, you will need to complete the following:
- Copy the ca.txt file to the same directory as httpd.conf (this contains all of the CA certificates in the chain).
- Add the following line to SSL section of the httpd.conf (assuming /etc/httpd/conf is the directory to where you have copied the ca.txt file). If the line already exists, amend it to read the following:
If you are using a different location and certificate file names, you will need to change the path and file name to reflect your server.
The SSL section of the updated httpd config file should now read similar to this example (depending on your naming and directories used):
Save your httpd.conf file and restart Apache.