Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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 Technical Support Community Manager 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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice