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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SSL certs wildcard domains across different hosts

Discussion in 'General Discussion' started by mobcdi, Oct 13, 2010.

  1. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,622
    Likes Received:
    26
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    How about opening up a ticket so we can get all of these removed and a proper configuration setup. A ticket could be opened in WHM > Support Center > Contact cPanel or using the link in my signature.
     
  2. brentc

    brentc Member

    Joined:
    Jul 20, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    51
    Thanks dude. I've submitted a ticket. ;)
     
  3. brentc

    brentc Member

    Joined:
    Jul 20, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    51
    It appears (so far) as if my wildcard SSL was configured correctly, but what I have ultimately been setting up is a portal-style login page for WHMCS using https://subdomain.domainname.tld and evidently there are additional settings in WHMCS that allow/deny using https://, though I am still awaiting confirmation from WHMCS support.
     
  4. abturnbull

    abturnbull Registered

    Joined:
    Oct 10, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    I used this solution for 1 domain, but the client has 4 Wildcard SSL's on the same server, All using different Dedicated IP.

    Now I setup this to allow.

    https://domain1.com
    https://sub.domain1.com

    but when
    https://domain2.com <- ok as this is setup by default.
    https://sub.domain2.com <- as soon as I set this up using the method above it comes up with the same error as above.

    Thanks
     
  5. jkoconnell

    jkoconnell Member

    Joined:
    Sep 14, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    I have tried to follow the various threads about wildcard SSL certs with no luck. I can manually edit httpd.conf to add subdomain.mydomain.tld:443 stanza, but that breaks as soon as http rebuilds.

    I have a wildcard cert for *.mydomain.tld.
    There are a number of subdomain.mydomain.tld sites.
    All share dedicated IP (not the main IP).
    All owned by user mydomain.
    (www.)mydomain.tld has document root: /home/mydomain/public_html
    Subdomains have documentroot: /home/mydomain/public_html/subdomain.mydomain.tld

    I need to create a configuration that will still work after rebuildhttpdconf is run.

    I still get error likesubdomain.mydomain.tld uses an invalid security certificate

    WHM 11.30.4 (build 6)
    CENTOS 5.7 x86_64 standard

    Ideas?
     
  6. jaywire

    jaywire Registered

    Joined:
    Mar 26, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Curious, why is a re-build of the config necessary? shouldn't a restart of apache be enough?

    Thank you in advance.
     
  7. jaywire

    jaywire Registered

    Joined:
    Mar 26, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Also, how does this work with Cname redirects...

    xyz.domain.com redirects to xyz.Otherdomain.com while the url still looks like xyz.domain.com all under ssl... so - https://xyz.domain.com

    does the ssl directions you provided cover this scenario?
     
  8. JessicaParker

    JessicaParker Registered

    Joined:
    Nov 19, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    I wrote out a small one liner that should make the process slightly easier for creation of domains.

    Code:
    DOMAIN='something.com' ; DOCROOT=$(/scripts/uf $DOMAIN | grep DocumentRoot | cut -d" " -f6 | sort -u) ; echo "softlayer-awk-foo" | awk '{print "cp /var/cpanel/userdata/nobody/\\*.myfitbodylife.com_SSL /var/cpanel/userdata/myfitbod/'$DOMAIN'_SSL ;  sed -e \x22\x32 cdocumentroot: '$DOCROOT'\x22 -i /var/cpanel/userdata/myfitbod/'$DOMAIN'_SSL"}'
     
  9. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    56
    Does anyone have access to a step by step guide for setting up wildcard SSL ? Has anything in the above thread changed with WHM 11.34 ?

    It looks like it maybe a real headache to do ? Is it simpler with seperate IP's for each subdomain ??
     
  10. ChrisLancs

    ChrisLancs Registered

    Joined:
    May 19, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    a wild card certificate isnt setup per IP Address.

    I have been noting this for quite some time, years infact, it started on firefox, If you use the cPanel system to generate a certificate you will get a secured connection, which is great but most browsers throw a hissy fit about the certificate being untrusted.

    The only solution is to allow an exception, chrome/chromium dont allow this, so every time you open whm or cpanel make a mail connection etc with these certs in use you will get the same notice. Its only once per session per subdomain, but its there all the same.

    Its more of a tedious annoyance than anything but surely there must be something that can be done about this other than requiring either umpteen bought Certs or a rather expensive wildcard.
     
Loading...

Share This Page