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.

Wildcard SSL Problem

Discussion in 'General Discussion' started by JacobHaug, Apr 15, 2011.

  1. JacobHaug

    JacobHaug Member

    Joined:
    Mar 9, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Alright, so I'm trying to install a wildcard SSL certificate that I purchased, and am having horrible luck with cPanel/WHM. I'm running on WHM 11.28.87, and have been working at this for a few days now with no luck. Here's what I've done....

    1) Created a wildcard subdomain *.backendlabs.com that uses public_html (Needed to install Wildcard SSL)
    2) Used WHM to install SSL certificate to *.mydomain.com

    After doing the above, the certificate begins working but only for my main domain.

    https://mydomain.com/ - Works
    https://www.mydomain.com/ - Works

    However, when accessing any other subdomain on the site, instead of getting the contents of the subdomain like I'm supposed to, I just get the root of public_html. E.g.

    https://clients.mydomain.com/ - Loads content of https://www.mydomain.com/

    This happens for all the subdomains.

    Once I relized things weren't working properly, I searched around and found a few solutions that I thought might work. I tried what was suggested in the second post of this thread....

    http://forums.cpanel.net/f34/proble-installating-wild-car-startssl-201481.html

    No luck! What am I missing? I thought cPanel support wildcard SSL certificates now. What else needs to be changed? Is the problem because of the subdomain I created?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Did you copy the SSL to those locations and change the paths, then run the scripts:

    Code:
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak110415
    /scripts/rebuildhttpdconf
    /etc/init.d/httpd restart
    Simply changing the files does not actually rebuild the Apache configuration. You have to rebuild it and restart it. Additionally, you could be cached to the old location and should check a proxy such as proxify.net or kproxy.com after performing the steps.
     
  3. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    You don't need to create * wildcard subdomain from step 1) to generate CSR. In fact, this invalidate any other subdomain you've already created. Remove it then old subdomains will work again.

    Then you need to setup SSL certificate for each subdomain. One way is to create a distinct account for each subdomain but maybe there are other better ways, I don't know.
     
Loading...

Share This Page