How to Make Self-Signed, Shared SSL Work in a Single IP cPanel


Jul 13, 2012
cPanel Access Level
DataCenter Provider
I searched cPanel forum and internet, even opened a ticket, but didn't find a definitive solution on that. The solution might be there somewhere but I didn't find it. So I figured out a way to achieve it and like to share it with you, using two fake accounts as an example. You will need to have root access to the server.

Fake Accounts
account & domain 1: acctme
account & domain 2: acctyou

cPanel Server
CENTOS 5.10 x86_64 standard – web WHM 11.44.1 (build 11)

Make the following work on a self-signed SSL

1. At WHM SSL/TSL section, generate and install a certificate for

2. Click Manage SSL Hosts and make SSL of shared

3. ssh to the server and login as root

4. Open /usr/local/apache/conf/httpd.conf

5. Locate <VirtualHost> that has as server name, where is your cPanel server IP

6. Copy the whole section of <VirtualHost> ... </VirtualHost> to a temporary file and quit httpd.conf

7. Edit the temorary file and replace the content as follows

  • acctme -> acctyou -> ->

8. WHM -> Apache Configuration -> Include Editor. Select Post Virtual Host Include and select apache version

9. Copy the content of the temporary file, paste it into the input area and click Update

Now you can visit and, each shows its own home page.

Hope this can save others' time who are looking for the same solution.


Staff member
Apr 11, 2011
Hello :)

Note that the better option is to simply install the certificate directly via Web Host Manager. SNI is supported with CentOS/RHEL/CloudLinux versions 6 and higher, so you can install multiple certificates on the same IP address.

Thank you.