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.

Weird SSL certificate installation Error

Discussion in 'Security' started by vrootwoot, Nov 21, 2011.

  1. vrootwoot

    vrootwoot Registered

    Joined:
    Nov 21, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Everybody.

    I'm trying to install a wildcard certificate through whm / cpanel.
    It has been ordered for *.mydomain.tld

    Whatever the subdomain i would like to associate to my certificate whm keeps giving me this weird error:

    [h=3]Error[/h]SSL install aborted due to error: ok



    I would have expected something more human friendly.
    Does anybody knows something about it?

    Many thanks.
    VrootWoot
     
  2. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi,

    Have you setup wild card dns on your domain. If you are not sure how to do this then please follow these steps.

    Edit dns zone file of domain either by vi editor, vi /var/named/domain.com.db or from the WHM Main >> DNS Functions >> Edit DNS Zone

    Put, *.domain.com 600 IN A x.x.x.x Replace x.x.x.x with your server's IP address.

    Now open httpd.conf by vi editor, vi /usr/local/apache/conf/httpd.conf

    Edit the server ServerAlias entry and add *.domain.com. Now ServerAlias should look like as per following


    ServerAlias www.domain.com domain.com *.domain.com


    Now most importnat step is , just to restart the services, apache and dns (bind).
    This you can do from the WHM Main >> Restart Services

    Once all done you are free to reinstall the wildcard ssl on your domain :)
     
  3. Shyam Mohammed

    Joined:
    Jul 9, 2007
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ernakulam, Kerala, IN
    cPanel Access Level:
    Root Administrator
    Hey,

    Although you own 'wildcard' SSL certificates, the subdomains MUST be in a separate IP to install SSL. The best way to do this is to create the subdomain as a normal account via WHM. Try to install the SSL certificate after making this change, using the normal SSL installation procedure.
     
  4. vrootwoot

    vrootwoot Registered

    Joined:
    Nov 21, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  5. 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
    Of note, the previous suggestion (http://forums.cpanel.net/f185/weird-ssl-certificate-installation-error-244501.html#post1009551) to modify httpd.conf directly for any virtual host entry would not work. Anytime EasyApache is run to recompile Apache or /scripts/rebuildhttpdconf is processed, that modification will be lost. It even warns this above each of those entries:

    Of note, there is another way to perform this action and there is also a script that can be used to add each new subdomain. The how-to on using the /var/cpanel/userdata files is at this location:

    http://forums.cpanel.net/f5/ssl-certs-wildcard-domains-across-different-hosts-169030.html#post701022

    Here is the script that was created by thecpaneladmin site to make it easier to install these:

    Wildcard SSL Installation Script :: The cPanel Admin
     
  6. minosjl

    minosjl Well-Known Member

    Joined:
    Jun 4, 2011
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    hi,

    If we purchase the wild card ssl and wish to install it for the main domain and for all sub domains , does the old post you have mentioned will work for installing SSL for the main domain ? , because as i understand is , we are installing the wildcard as nobody user and after that we are coping the info from /var/cpanel/userdata/nobody to the particular user account .

    It will be great if you tell something about , what's the steps we need to done in case of the main domain SSL install ?
     
  7. 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
    If you install it on the main domain instead and that main domain has a dedicated IP, then the steps are simpler and you simply need to copy /var/cpanel/userdata/username/maindomain.com_SSL file to /var/cpanel/userdata/usrname/sub.maindomain.com_SSL location and make any revisions there.

    Here username would be the cPanel username, maindomain.com wouold be the main domain and sub.maindomain.com would be one of the subdomains.
     
  8. usercpanel

    usercpanel Member

    Joined:
    Aug 30, 2007
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Hey Tristan... pretty manual work there but that did the trick....thanks :)
     
Loading...

Share This Page