Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    4

    Default SSL Certificate on a Shared IP

    So I have a VPS through Daily.co.uk and they say I have to install the SSL certificate on the primary IP before they will give me a dedicated IP. They say this is due to RIPE issuing restrictions, they say that its possible or in their words,

    Q. I use a third party control panel/GUI on my VPS that will not let me set up a SSL certificate on my primary IP address, so you'll have to issue me an additional IP.
    A. If you are unable to use your existing IP address due to specific software, your only option would be to use different software without these restrictions.
    So does anyone know how to install a SSL certificate for my domain on a shared IP?

  2. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Re: SSL Certificate on a Shared IP

    To install a shared SSL certificate, in the WebHost Manager, click Main >> SSL/TLS >> Install a SSL Certificate and Setup the Domain. Paste in the certificate, key and CA bundle if you have one. In the User field, enter nobody. This must be nobody if you are installing a certificate on a shared IP address. If you enter an account username, the installation will fail.

    Note that once installed, this certificate will be used by every site on the shared IP address.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  3. #3
    Registered User
    Join Date
    Nov 2005
    Posts
    4

    Default Re: SSL Certificate on a Shared IP

    But thats a point I want to install a SSL certificate just for one domain. Not a shared certificate,

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: SSL Certificate on a Shared IP

    Hello,

    The issue here is that a shared IP is shared by all domains on the machine. You can install the SSL onto the user nobody and still use an individual domain, but any user going to https://anotherdomain.com will pull up the site of the user's domain that has the SSL. So, basically, here is what happens:

    1. You install the certificate for thisdomain.com on the shared IP as the user nobody
    2. All sites are on that IP, so anyone hitting https (which is on port 443) will pull up https://thisdomain.com site content even when using https://anothersite.com (they will show their domain in a browser but the content of the https://thisdomain.com site)

    You cannot share an IP and still have the SSL only work on one domain name. Everyone is going to be able to see that other site on https. You have to have a dedicated IP for only that user to show https:// for their domain name.

    Most hosts will let you purchase an additional IP, and any host running Apache is going to have this same issue with a shared IP showing the content for the one domain for all other sites when loading https in a browser.

    Now, if you do not care if other sites load the one domain and only care if the one domain works for https, you would need to take one further step to get it working on the shared IP. In root SSH after installing as the user nobody, you'd need to do the following:

    Code:
    cp /var/cpanel/userdata/nobody/thisdomain.com_SSL /var/cpanel/userdata/username/thisdomain.com_SSL
    Replace thisdomain.com with the domain name and username with the cPanel username of the account. At that point, you'd then open up the file at /var/cpanel/userdata/username/thisdomain.com_SSL after backing it up:

    Code:
    cp /var/cpanel/userdata/username/thisdomain.com_SSL /var/cpanel/userdata/username/thisdomain.com_SSL.bak
    vi /var/cpanel/userdata/username/thisdomain.com_SSL
    Then edit the following lines (these are taken out of order as there are other lines that I am not showing which do not need to be edited):

    Code:
    documentroot: /home/username/public_html/
    group: username
    homedir: /home/username
    user: username
    As previously, replace username with the cPanel username.

    To replace the httpd.conf (Apache configuration) file with the new content, then you'd run these commands to backup httpd.conf, rebuild it and restart it:

    Code:
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak110125
    /scripts/rebuildhttpdconf
    /scripts/restartsrv_httpd
    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Shared SSL certificate issue
    By Barfani123 in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 04-11-2010, 02:03 PM
  2. Shared SSL Certificate in WHM, what does that really do?
    By 2mhost.com in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 06-09-2009, 09:54 AM
  3. How to setup a shared ssl certificate ...
    By bsamson in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-16-2007, 12:43 PM
  4. SSL Certificate on Shared IP
    By mfumbe in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-16-2006, 09:43 PM
  5. Install shared SSL Certificate
    By kbarber in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-05-2004, 09:36 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube