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.

usng shared wildcard cert for ~user on ip'd account

Discussion in 'General Discussion' started by stokkeland, Nov 22, 2008.

  1. stokkeland

    stokkeland Registered

    Joined:
    Nov 15, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I did a lot of searches and didnt see anything on this specifically - I dont think it matters that the cert is wild card.. lets say this is the setup:

    server is named host1.isp.dom
    the main/shared ip is 1.1.1.1
    certificate is for *.isp.dom
    user account user1 has domain user1.dom on its own ip 1.1.1.2

    in whm the shared cert was installed with "Install SSL certificate and setup the domain" to domain DefaultDomain, user nobody and IP 1.1.1.1.
    Then sharing was enabled.

    The certificate works fine for all accounts using the user acct
    https://cnamehost.isp.dom/~username
    if the account is set up on the main/shared ip.

    but, if I try that url on an account that has its own ip, apache redirects it to that domain instead. so
    https://cnamehost.isp.dom/~user1/
    is redirected to
    https://www.user1.dom/~user1/
    which that ip/domain does not have its own ssl cert and therefore fails. to add to the mix, if the original request if for a servername or serveralias that already exists (instead of some cname) then it redirects to the same virtual host servername but without https, still uncluding the uri - so
    https://host1.isp.dom/~user1/
    is redirected to
    http://www.user1.dom/~user1/

    I am guessing I did something wrong somewhere, I was unable to find any official documentation on how to install a wildcard cert for share ssl use - it would be easy for me to fix it by editing httpd.conf but that doesnt exactly help me since I will need whm to retain it, and I would like to know the correct whm way...
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    200
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    A search on these forums for the term wildcard cert brings back two pages of results. None of them is any good for your needs?
     
  3. stokkeland

    stokkeland Registered

    Joined:
    Nov 15, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    not really, I dont think it matters if it is wild or plain shared cert - none of them threads I looked at addressed the fact that accessing ssl ~user on an ip accounts redirects to the servername set on the vhost belonging to that user
     
Loading...

Share This Page