Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 27 of 27
  1. #16
    Member
    Join Date
    Jul 2010
    Posts
    16

    Default Re: SSL certs wildcard domains across different hosts

    Okay, the server I'm working on DOES have a wildcard SSL. I did not generate the CSR, or install the certificate, I'm just the one lucky enough to try and fix this.

    Here's basically what I've come to find:

    The SSL Key/Crt Manager tool in WHM there are a few entries.

    Listed under Keys there is *.domainname.tld with a matching Signing Request, and since this client has multiple certificates, under Certificates there are multiple entires; including one for *.domainname.tld. As far as I can tell, this should all be correct.

    When I followed the directions above to update the owner of the SSL from nobody to username, I find no corresponding file at /var/cpanel/userdata/nobody/*.domainname.tld_SSL, so I copied the domainname.tld_SSL from /var/cpanel/userdata/username and updated the values to sort of act like the file as it's supposed to exist at /var/cpanel/userdata/nobody. This doesn't seem to work.

    At this point I am starting to think the SSL installation was done differently than what we're expecting should have happened so that I can follow the instructions here. Am I too far gone with this to be to fix it manually, or should we be doing a reinstall of the certificate somehow?

  2. #17
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: SSL certs wildcard domains across different hosts

    Is there a wildcard certificate in /etc/ssl/certs/ location named *.domainname.tld.crt ? If there is not, then that needs to exist first in order for anything else to work.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #18
    Member
    Join Date
    Jul 2010
    Posts
    16

    Default Re: SSL certs wildcard domains across different hosts

    Yes, there is the .crt and .csr in this location. But, I am also seeing that I guess they were trying to cover all the bases and there are also entries for TheSubDomainIWant.domainname.tld.crt (&.csr) and just domainname.tld.crt (&.csr). Could this be possibly causing a conflict? What I don't see for the wildcard is the *.domainname.tld.cabundle.

  4. #19
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: SSL certs wildcard domains across different hosts

    You'd need the .cabundle file for the wildcard. Do you still have the certificate? If so, why not simply reinstall it using the user nobody like the guide and follow the steps then? You probably want to uninstall the other certificate while you are at it (please ensure to make copies of /etc/ssl folder before making any changes with "cp -R /etc/ssl /etc/ssl.bak110901" first).
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #20
    Member
    Join Date
    Jul 2010
    Posts
    16

    Default Re: SSL certs wildcard domains across different hosts

    Ah man. I think I've over-thought this.

    My client has already tried to create the SSL a few different ways so everything's getting all confused here. I am not finding the best way to "undo" what he's done so I can get a truly clean install of the SSL as if it was the first time. When I've done everything I think I was supposed to do, and I rebuild httpd, I'm getting errors that there's already an SSL VirtualHost entry, etc etc...

    warn [rebuildhttpdconf] SSL VirtualHosts with identical IP/Port detected: subdomain.domainname.tld_SSL and *.domainname.tld_SSL ... defaulted to subdomain.domainname.tld_SSL
    Failed to generate a syntactically correct Apache configuration.
    Bad configuration file located at /usr/local/apache/conf/httpd.conf.1314914985
    Error:
    An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.1314914985
    Exit signal was: 0
    Exit value was: 1
    Output was:
    ---
    Syntax error on line 260 of /usr/local/apache/conf/httpd.conf.1314914985:
    <VirtualHost> directive requires additional arguments
    ---

    Whereas at line 260 of httpd.conf.1314914985, it's like an empty conf entry.

    I guess now I'm at, How do I uninstall everything this customer did before I touched it? Unless you have a better suggestion.

  6. #21
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: SSL certs wildcard domains across different hosts

    How about opening up a ticket so we can get all of these removed and a proper configuration setup. A ticket could be opened in WHM > Support Center > Contact cPanel or using the link in my signature.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #22
    Member
    Join Date
    Jul 2010
    Posts
    16

    Default Re: SSL certs wildcard domains across different hosts

    Thanks dude. I've submitted a ticket.

  8. #23
    Member
    Join Date
    Jul 2010
    Posts
    16

    Default Re: SSL certs wildcard domains across different hosts

    It appears (so far) as if my wildcard SSL was configured correctly, but what I have ultimately been setting up is a portal-style login page for WHMCS using https://subdomain.domainname.tld and evidently there are additional settings in WHMCS that allow/deny using https://, though I am still awaiting confirmation from WHMCS support.

  9. #24
    Registered User
    Join Date
    Oct 2011
    Posts
    1
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: SSL certs wildcard domains across different hosts

    Quote Originally Posted by brentc View Post

    warn [rebuildhttpdconf] SSL VirtualHosts with identical IP/Port detected: subdomain.domainname.tld_SSL and *.domainname.tld_SSL ... defaulted to subdomain.domainname.tld_SSL
    Failed to generate a syntactically correct Apache configuration.
    Bad configuration file located at /usr/local/apache/conf/httpd.conf.1314914985
    Error:
    An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.1314914985
    Exit signal was: 0
    Exit value was: 1
    Output was:
    ---
    Syntax error on line 260 of /usr/local/apache/conf/httpd.conf.1314914985:
    <VirtualHost> directive requires additional arguments
    ---

    Whereas at line 260 of httpd.conf.1314914985, it's like an empty conf entry.
    I used this solution for 1 domain, but the client has 4 Wildcard SSL's on the same server, All using different Dedicated IP.

    Now I setup this to allow.

    https://domain1.com
    https://sub.domain1.com

    but when
    https://domain2.com <- ok as this is setup by default.
    https://sub.domain2.com <- as soon as I set this up using the method above it comes up with the same error as above.

    Thanks

  10. #25
    Registered User
    Join Date
    Sep 2005
    Posts
    3

    Default Re: SSL certs wildcard domains across different hosts

    I have tried to follow the various threads about wildcard SSL certs with no luck. I can manually edit httpd.conf to add subdomain.mydomain.tld:443 stanza, but that breaks as soon as http rebuilds.

    I have a wildcard cert for *.mydomain.tld.
    There are a number of subdomain.mydomain.tld sites.
    All share dedicated IP (not the main IP).
    All owned by user mydomain.
    (www.)mydomain.tld has document root: /home/mydomain/public_html
    Subdomains have documentroot: /home/mydomain/public_html/subdomain.mydomain.tld

    I need to create a configuration that will still work after rebuildhttpdconf is run.

    I still get error likesubdomain.mydomain.tld uses an invalid security certificate

    WHM 11.30.4 (build 6)
    CENTOS 5.7 x86_64 standard

    Ideas?

  11. #26
    Registered User
    Join Date
    Mar 2012
    Posts
    2
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: SSL certs wildcard domains across different hosts

    Curious, why is a re-build of the config necessary? shouldn't a restart of apache be enough?

    Thank you in advance.

  12. #27
    Registered User
    Join Date
    Mar 2012
    Posts
    2
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: SSL certs wildcard domains across different hosts

    Also, how does this work with Cname redirects...

    xyz.domain.com redirects to xyz.Otherdomain.com while the url still looks like xyz.domain.com all under ssl... so - https://xyz.domain.com

    does the ssl directions you provided cover this scenario?

Similar Threads & Tags
Similar threads

  1. SSL Certs on Addon Domains
    By pxhost in forum New User Questions
    Replies: 2
    Last Post: 01-07-2009, 01:53 PM
  2. SSL Certs
    By CTC in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-14-2007, 09:48 AM
  3. No ssl certs work on domains
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-08-2006, 08:37 AM
  4. Wildcard hosts
    By clarocque in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-12-2005, 05:47 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube