In order to install a SSL certificate, make sure your plan includes a dedicated IP address. If it does not, contact us so we can assist you with adding one to your account.
First, make sure mod_ssl is installed. In Centos you can run the following command to install mod_ssl:
yum install mod_ssl
To install the SSL certificate follow these steps:
- Create a file /etc/httpd/conf.d/cert.key and place the content of the certificate key in it. It will look like (with more lines):
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
Create a file /etc/httpd/conf.d/cert.crt and place the content of the certificate in it. It will look like (with more lines):
- Edit /etc/httpd/conf.d/ssl.conf (centos) or /etc/apache2/sites-enabled/default-ssl (ubuntu) and change SSLCertificateKeyFile and SSLCertificateFile directives so they point to the files listed in 1 and 2.
Restart apache by running service httpd restart or in the control panel.