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.

Dynamic Subdomains Wildcard SSL

Discussion in 'Security' started by Impert, Mar 21, 2016.

  1. Impert

    Impert Registered

    Joined:
    Mar 21, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Miami
    cPanel Access Level:
    Website Owner
    I have a similar problem to the one described here:
    Dynamic Subdomain SSL Issue

    I have a shared hosting bluehost account with dedicated IP and with 2 different certificates for 2 different domains
    domain1.com Has had SSL certificate installed for a few months
    domain2.com Just purchased and installed a wildcard SSL certificate. This domain is a WP Multisite installation with a wildcard name record that allows me to create a wordpress site with its own subdomain

    Even though there's 2 different certificates on the same hosting account, they both seem to work separately. However they don't work for any of the subdomains of domain2.com but in a funny way what it does is whenever you try to access subdomain.domain2.com over HTTPS it redirects you to domain1.com

    I've contacted bluehost support and they were just as confused as i was and just directed me to this page Wildcard SSL Certificates But changing my httaccess to those rules broke my site getting Internal Server error

    I don't access to WHM or server configurations

    I can supply the real domain names so you can see for yourself if required

    Appreciate any help that you guys could provide
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. Impert

    Impert Registered

    Joined:
    Mar 21, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Miami
    cPanel Access Level:
    Website Owner
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Could you clarify if you are installing the wildcard SSL certificate for each individual subdomain? This is required, as each subdomain has it's own VirtualHost.

    Thank you.
     
  5. Impert

    Impert Registered

    Joined:
    Mar 21, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Miami
    cPanel Access Level:
    Website Owner
    It is a wildcard SSL certificate that says it covers domain2.com and any subdomains *.domain2.com
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    That's correct, however you must still install the same SSL certificate for each individual subdomain. For instance, try installing the wildcard SSL certificate for one of your specific subdomains and see if the issue persists for that particular subdomain.

    Thank you.
     
  7. wence

    wence Registered

    Joined:
    Mar 27, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Illinois
    cPanel Access Level:
    Website Owner
    I have the same issue and tried to install the same SSL but it will automatically pull the info of the previous installation, the one with *. so there is no way to input the subdomain name.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    When installing the SSL certificate for the subdomain, you should first browse to the "SSL/TLS" option in cPanel. Then, click on the "Manage SSL Sites" option. Click on "Browse Certificates" and choose your wildcard certificate so that certificate data is populated in the open fields. Then, change the domain name field to the specific subdomain you are installing the wildcard certificate on and proceed to click on "Install Certificate". This process completed successfully on a test server.

    Thank you.
     
Loading...

Share This Page