The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Security' started by xinchen, Aug 14, 2014.

  1. xinchen

    xinchen Registered

    Jul 13, 2012
    Likes Received:
    Trophy Points:
    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.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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.

Share This Page