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.

Getting SSL cert to work on server for cpanel/WHM login

Discussion in 'General Discussion' started by bmett, Jul 28, 2011.

  1. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    Hi guys,

    Having some trouble to get a SSL cert working on our server for accessing cpanel/WHM.

    Installing the SSL cert itself wasn't a big deal. Done that hundreds of times for 'normal' domains, but this now keeps me stumped:
    Let's say our server has the IP 123.123.123.123 and we used to log in via
    https://123.123.123.123:2087 to get to WHM. Normally the browser would come up with the big warning that the side is not trusted etc etc and we just added an exception. But now we are starting to let clients access their cpanel accounts and we normally would give them the address
    https://123.123.123.123:2083 to log into cpanel. Of course clients then will get the same security warning, which we would like to avoid.

    After a bit of research and consultation with RapidSSL (thats where we get our SSLs from), I found out that you can't get SSL certs for IPs. Fair enough. So what about our domain name? Lets say the server behind above IP is called
    server1.mydomain.com
    Logging in via
    https://server1.mydomain.com:2087 works fine so I installed an SSL cert for that domain name. Installation of the cert worked fine. Browsing to https://server1.mydomain.com (without the portnumber) comes up with the nice padlock we want. No security warning.

    BUT, and thats where I get lost, if I type in https://server1.mydomain.com:2087 to login to WHM, no padlock and the security warning again.

    What am I doing wrong?

    Cheers,
    Bjorn
     
  2. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    386
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Hi,

    You must understand that http and cpanel are two different services. Installing SSL for a domain in http will not be picked up when you access cpanel service. You can get rid of this warning using the "Main >> Service Configuration >> Manage Service SSL Certificates" option in WHM and install the cert for cpanel/WHM/Webmail Service or for all services if you would like.

    Thank you,
    Nibin.
     
  3. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
  4. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    386
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Hi Bjorn,

    You can access with IP. But it will pop up a warning in browser saying "the certificate is only valid for server1.mydomain.com" :)

    Thank you,
    Nibin.
     
  5. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    Thanks nibin,

    I know that, but is it possible to access via IP and don't get the warning?

    Cheers,
    Bjorn
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    In "WHM >> Server Configuration >> Tweak Settings", under the "Redirection" tab, you can set the "SSL redirect destination" option to:

    "SSL Certificate Name"

    This will ensure the request is redirected to the SSL Certificate hostname.

    Thank you.
     
Loading...

Share This Page