In order to install a SSL certificate on a CentOS Virtual Server, 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.
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 and change SSLCertificateKeyFile and SSLCertificateFile directives so they point to the files listed in 1 and 2.
- Restart apache by running service httpd restart