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 over several accounts

Discussion in 'General Discussion' started by skina, Apr 16, 2008.

  1. skina

    skina Member

    Joined:
    Sep 21, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    I have a wildcard SSL certificate, *.domain.com. I would like to be able to create new accounts at the domain x.domain.com, y.domain.com and z.domain.com and allow those accounts the transparent use of the wildcard ssl certificate. How do I set this up?
     
  2. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    You can do that from WHM ssl area.
     
  3. skina

    skina Member

    Joined:
    Sep 21, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    I must be missing something.

    *.domain.com is my wildcard SSL.

    Currently there is no shared SSL certificate setup, I haven't had previous success with this.

    Installed SSL hosts:

    *.domain.com root

    If I try to Install a SSL Certificate and Setup the Domain with:

    Domain: *.domain.com
    User: staging (corresponding to account staging.domain.com)

    I will get a success. However, going to https://staging.domain.com redirects me to https://webmail.domain.com which is the first one i set up.

    The reason for this is:

    <VirtualHost 12.12.12.1:443>
    ServerName *.domain.co.uk
    ServerAlias www.*.domain.co.uk
    DocumentRoot /home/webmail/public_html

    ......

    SSLEngine on
    ......
    </VirtualHost>


    This is the only VH record setup with SSL. Even though staging.domain.com appears before this, and I 'successfully' added the staging account SSL, the corresponding VH has no SSL directives.


    If I try to Install a SSL Certificate and Setup the Domain with:

    Domain: staging.domain.com
    Username: staging

    I get The supplied certificate does not match the specified domain because the certificate is for *.domain.com, not staging.domain.com

    Any ideas?

    Thanks
     
  4. nwbach

    nwbach Member

    Joined:
    Nov 24, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    wildcard domains

    You must have a separate IP for each wildcard domain. Cpanel will allow you to point the new IP with your wildcard domain *.yourdomain.com and then point it to the user account. Sometimes cPanel is a bit buggy when it comes to correctly copying the wildcard cert to the new domain. Here's what I used to copy the wildcard cert bundle via command line.

    cd /usr/share/ssl/certs
    cp \*.yourwildcardcert.net.cabundle newdomain.yourwildcardcert.net.cabundle
    cp \*.yourwildcardcert.net.crt newdomain.yourwildcardcert.net.crt
    service httpd restart (restart Apache)

    Hope this helps.
     
    #4 nwbach, Apr 18, 2008
    Last edited: Apr 18, 2008
  5. skina

    skina Member

    Joined:
    Sep 21, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Is that a limitation of CPanel then? I thought that since I only have one SSL certificate, I would only need one IP address.

    For example, if I create subdomains x.domain.com under the same account where the *.domain.com SSL is installed then each subdomain is still on the same IP address and CPanel is fine with this.

    But CPanel won't let me do the same thing is each subdomain is its own account?
     
Loading...

Share This Page