{"id":3704,"date":"2014-06-11T14:45:51","date_gmt":"2014-06-11T19:45:51","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=3704"},"modified":"2022-12-15T03:11:13","modified_gmt":"2022-12-15T09:11:13","slug":"how-to-set-up-multiple-ssl-certificates-on-a-centos-vps-with-apache-using-one-ip-address","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-multiple-ssl-certificates-on-a-centos-vps-with-apache-using-one-ip-address\/","title":{"rendered":"How To Set Up Multiple SSL Certificates On a CentOS VPS With Apache Using One IP Address"},"content":{"rendered":"
<\/div>

\"sni\"In this tutorial we will show you how to set up multiple SSL Certificates on a CentOS VPS<\/a> with Apache using one IP address only.<\/p>\n

This is allowed by an extension to the SSL protocol called Server Name Indication (SNI). Most current desktop and mobile web browsers support SNI. The main benefit of using SNI is the ability to secure multiple websites without purchasing more IP addresses.<\/p>\n

<\/p>\n

Make sure the mod_ssl security module is installed and enabled so the Apache web server can use the OpenSSL library and toolkit:<\/p>\n

yum install mod_ssl openssl<\/pre>\n

Execute the following commands:<\/p>\n

mkdir -p \/etc\/httpd\/ssl\/\r\nmv \/etc\/httpd\/conf.d\/ssl.conf \/etc\/httpd\/conf.d\/ssl.conf.bak \r\ncd \/etc\/httpd\/ssl\/<\/pre>\n

Generate SSL certificate signing request (CSR) files for your domains:<\/p>\n

openssl genrsa -out domain1.key 2048\r\nopenssl req -new -key domain1.key -out domain1.csr\r\n\r\nopenssl genrsa -out domain2.key 2048\r\nopenssl req -new -key domain2.key -out domain2.csr<\/pre>\n

and enter the following details for your certificates:<\/p>\n