In the following instructions, you will learn how to install an SSL certificate on an Apache web server version 2.x.
The prerequisite is that the Apache web server is already installed with SSL support.
The certificate and the private key are already present on the server.
SSLCertificateKeyFile /etc/ssl/ssl.key/server.key
SSLCertificateFile /etc/ssl/ssl.crt/yourdomain.crt
SSLCertificateChainFile /etc/ssl/ssl.crt/deinedomain.ca-bundle
Log in to your web server and open the configuration file with any editor (e.g. Notepad++, Sublime Text2) of your choice.
Fedora/CentOS/RHEL: /etc/httpd/conf/httpd.conf
Debian and Debian based: /etc/apache2/apache2.conf
Locate the VirtualHost configuration section that you want to secure using SSL and add the following configuration.
SSLEngine on
SSLCertificateKeyFile /etc/ssl/ssl.key/server.key
SSLCertificateFile /etc/ssl/ssl.crt/yourdomain.crt
SSLCertificateChainFile /etc/ssl/ssl.crt/yourdomain.ca-bundle
Then save the configuration and close the editor.
Now test the configuration with the tool apache2ctl configtest.
If the output is error-free: Syntax OK, restart the web server service apache2ctl restart.
Send an email
Telephone support