Step 1 – Download all the necessary certificates (your Server Certificate and the Intermediate Certificates) from your customer area or from the order completion email provided by your CA.
Now copy them to the directory on your server where you intend to store your key files and certificates. Please ensure to make them readable by root only.
Step 2 – Now find the Apache config file – usually titled "httpd.conf". Generally it is found in /etc/httpd, though it may differ in certain variations of Apache. In the file you may find the <VirtualHost> block in one of the following locations:
- At the bottom of the httpd.conf files.
- In a file called 'ssl.conf'
- In their own files under a directory like /etc/httpd/vhosts.d/ or /etc/httpd/sites/.
You will want to open the files in a text editor until you locate the <VirtualHost> block.
Step 3 – You will need a virtual host for both the HTTPS and HTTP protocol if you want your website to be accessible with both, secure (https) and non-secure (http) connections. As described in step 4, make a copy of the existing non-secure virtual host and then configure it for HTTPS (SSL).
If you want your website to be exclusively accessible securely via HTTPS, you can configure the existing virtual host for SSL (as described in step 4)