Results 1 to 3 of 3

Thread: [SOLVED] Commercial SSL certificates - to clear out misunderstanding in file layout

  1. #1
    j2b's Avatar
    j2b
    j2b is offline Special Member
    Join Date
    Sep 2008
    Location
    Latvia
    Posts
    164
    Rep Power
    6

    Exclamation [SOLVED] Commercial SSL certificates - to clear out misunderstanding in file layout

    I wonder, if anybody from Zimbra stuff can provide feedback on this issue.

    Recently I was dealing with Commercial SSL certificate installation on Zimbra Proxy only in Multiserver setup. Zimbra proxy - separate server, no other services are running there.

    I was going through all of the SSL stuff here in forum, and somehow managed to install certs and deploy them. As far as I can understand, OpenSSL is used in Zimbra as a basis, with additional deployment scripts provided by Zimbra itself. I have passed successfuly through all OpenSSL and zmcertmgr verification of certs and deployment without any errors, as somebody were getting.

    Applied keytool command on Proxy, restarted zimbra services and everything was ok, until I tested connection to this server.

    All services worked, but there was a problem (even with commercial certificate - Thawte) - Safari nor Mac Mail application (IMAP/POP) could not connect to server corectly, throwing out an error with a notice, that "Certificate was signed by an untrusted issuer".

    Investigating further this problem and keeping in touch with Thawte fantastic support, I came to the following conclusion:

    1. By provisioning to zmcertmgr: commercial.crt (pure server cert) and commercial_ca.crt (root & intermediary servers), zmcertmgr somehow concatenated all this stuff together in one file.

    2. After checking of commercial.crt file in /opt/zimbra/ssl/zimbra/commercial, I noticed, that this file is not only server cert any more. It includes root and intermediary servers.

    3. After deployment, I noticed, that the same file was copied in /opt/zimbra/conf/nginx.crt (which probably is automatic process to provide SSL for Nginx configuration, on base of which Zimbra Proxy is providing services).

    4. Probably some additional files were copied to /opt/zimbra/conf/ca folders, but still further didn't discovered it, as for each commercial_ca, several files were created.

    So far I discovered some errors on file concatenation, described in other posts of this forum.

    !!!!
    Remember to include last LF symbol (Line Feed) in your certs' files, as concatenation will be incorect, and your joined certificates will not be recognized. -----Begining----- and -----End----- of certificate in such file should be on new line. This was my first finding and personal error.

    But what I would like to ask Zimbra people?

    According to what principles chained certificate files are joined in other prepared files, as some other forum posts were missleading in this? In other posts admins were defining, that you should concatenate root_ca file with intermediary_ca certs, by sych order creating one file, which starts with Root, and all subsequent intermediary certificates are added. But as far as I can understand, the final version (corect one) of chained cert file should be in the following order:

    1. Server certificate;
    2. Secondary intermediary certificate;
    3. Primary intermediary certificate;
    4. Root CA certificate.

    Deploying certs by zmcertmgr position 2 to 4 were mixed up vice versa, thus leading to incorrect order of chained certs, giving the following: server, root, primary int, secondary int., and as a consequence - unability to verify issuer.

    Althoug verification before deployment went OK. Verified with zmcertmgr and OpenSSL commands.

    So my questions:

    1. Does it make sense to Zimbra the order of certs in a chained file?

    2. What files and to what location zmcertmgr copies to (currently found out only one file - /opt/zimbra/conf/nginx.crt)?

    3. How to make correct deployment of certificate order in final crt files manually?

    I would like to make manual editions of deployed crt files in correct order, but in which locations should I do it? Is it enough to change nginx.crt file, as I suppose, that /opt/zimbra/ssl/zimbra/commercial is just a repository of certificates to be used on updates or upgrades of Zimbra.

    Would appreciate Zimbra comments and other people help.

  2. #2
    Ramadan Mansoura is offline Former Zimbran
    Join Date
    Oct 2006
    Posts
    55
    Rep Power
    8

  3. #3
    j2b's Avatar
    j2b
    j2b is offline Special Member
    Join Date
    Sep 2008
    Location
    Latvia
    Posts
    164
    Rep Power
    6

    Default

    Thank your Ramadan Mansoura for reminding me on this issue. When I was struggling about this thing, nodoby was available for discussion. I was trying to connect to Thawte support, which has fantastic response time, but nevertheless, I had to leave this issue with a thought, that there something is wrong, and I've spent money for incorrect working of SSL. Thawte at that time could not help for a month, talking about result or solution. Oddly enought, before one of my other cert renewal, Thawte became active again, and it turned out, that they've provided me with wrong Root Certificate hash. They passed me MD5 hash file, instead of sha1. In December, when we returned to this issue, this was solved in a couple of days, and it turned out, that Zimbra had nothing to do with this issue.

    Probably this issue were somewhere discussed in their knowledga base pages, but for person, who is not dealing with this in day-to-day manner, it was hard to find such info. And more bad words to Thawte - they could not too.

    For others, if something similar happens - e.g. if ssl checks are OK, but browsers can not verify root cert signer, please check hashes of your CA cert. But this could be probably only one of the cases.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Installing existing SSL certificates (solved)
    By inigoml in forum Administrators
    Replies: 22
    Last Post: 02-24-2009, 10:32 AM
  2. Commercial Certificates for slapd
    By trunet in forum Administrators
    Replies: 2
    Last Post: 10-09-2007, 05:24 AM
  3. Commercial SSL Certificates
    By Krishopper in forum Administrators
    Replies: 1
    Last Post: 02-24-2007, 05:58 PM
  4. Traslation SVN tree status
    By meikka in forum I18N/L10N - Translations
    Replies: 7
    Last Post: 02-13-2007, 11:13 AM
  5. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 01:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •