In order to install an SSL certificate on an Apache server, you need to have generated a CSR and requested an SSL certificate. Please read the manual Generate a CSR in Apache for more information.
The SSL certificate will be sent to you by email after the request has been processed, but can also be downloaded through your account on the Networking4all website. In order to install your SSL certificate, please follow these steps:
Copy the intermediate certificate as well as your own certificate to the Apache server.
Configure the Apache configuration file. Go to the virtualhost block for your website and enter the following configuration:
<virtualHost 192.168.0.1:443> (enter the IP address of the server that hosts the website)
DocumentRoot /var/www/html (this is the root folder where the website’s files are located)
ServerName www.yourdomainname.com (the name of the website)
SSLEngine on (This option turns on the SSL support on this website)
SSLCertificateFile /path/to/certificaat.crt (the path to the location of the certificate on the server)
SSLCertificateKeyFile /path/to/private.key (the path to the location of the private key on the server)
SSLCertificateChainFile /path/to/intermediate.pem (the path to the location of the intermediate certificates)
Test your server configuration with the following command:
If no error messages are shown, Apache was configured correctly. The server can now be rebooted to load the new configuration. Use the following commands to do so: