I have the same issue - albeit on a 32-bit CentOS 5.3 install.
The cert is a GlobalSign wildcard certificate that installs and works just fine in Exim, Apache, lighttpd, Courier-IMAP and Dovecot - had problems getting it to install at first due to Zimbra not using OpenSSL's own root CA repository.
Our GlobalSign cert required the GlobalSign root cert adding to the intermediate cert in order for Zimbra to verify and install it - something which I didn't anticipate but I'm not averse to going a little out of my way to sorting something simple like a cert trust path.
Nevertheless, the certificate installed with no issues once I did that but like you, I'm seeing the exact same issue - which magically goes away when I do a '/opt/zimbra/bin/zmcertmgr deploycrt' and Zimbra generates/installs a new self-signed cert.
The documentation is horrible - a product geared towards enterprise use should have extensive docs (especially on the SSL parts; we manage/install/support 500+ SSL certs as a GlobalSign partner and like to think we know what we are doing but this issue has us well and truly stumped).
The closest I can get to finding the problem is:
zmmtaconfig.log:Sat Oct 3 10:43:38 2009 gs:*******.example.com ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target)
(why oh why don't you echo this to stderr rather than dumping it in a logfile - at least print something to stderr to say, something bad happened, you can see what in /opt/zimbra/log/blahblah.log)
Which I suspect is due to the root/intermediate certificate problem I detailed earlier, but according to the zmcertmgr documentation, if our certificate and associated root/intermediate certs pass a 'verifycrt' and 'verifycrtchain' like so:
[root@****** certs]# /opt/zimbra/bin/zmcertmgr verifycrt comm commercial.key commercial.crt
** Verifying commercial.crt against commercial.key
Certificate (commercial.crt) and private key (commercial.key) match.
Valid Certificate: commercial.crt: OK
[root@******* certs]# /opt/zimbra/bin/zmcertmgr verifycrtchain commercial_ca.crt commercial.crt
Valid Certificate Chain: commercial.crt: OK
... why does it not work as expected ?
Add to that, the cavalier attitude of the Zimbra devs towards an officially supported deployment platform of RHEL5 (that of Xen virtualization) and the fact that the issue as detailed in
Bug 23683 – Use posix mutexes on Linux builds to avoid Xen issues is still not fixed in Zimbra 6.0.1 NE even though the Bugzilla entry is marked as 'FIXED' does not give me any confidence in the quality of the binaries they are throwing out.
It isn't a pretty sight watching a dual Xeon 3.0GHz machine with 4GB of RAM fall to its' knees while the zmlogger process periodically eats 90%+ of CPU time due to this particular issue.
For one thing, Red Hat ship only *one* copy of OpenLDAP with their distro - it works perfectly with both non-Xen and Xen-enabled kernels; Zimbra's binary packages are specially customized for each distribution of Linux they support and the fact that they couldn't be bothered to investigate and implement the same fixes that OpenLDAP/Red Hat made to their binaries makes me feel that this attitude may be the same across the entire product.
I'll point out to the Zimbra folks that while I'm running this on CentOS 5.3/i386, I can certainly duplicate both of the above issues on a genuine RHEL 5.3/i386 install also.
We are currently seven days in to a 60-day Network Edition evaluation license and definitely not liking it because we can't even get the thing installed and working with SSL-only webmail (our one and only 'must have') due to the aforementioned cert problems - eventually plan to become a Zimbra Hosting Partner but if *I* don't feel comfortable in the quality of the product or even using it internally within our own organization, there is no way I am going to ask our customers to make such a leap of faith when we aren't prepared to do it ourselves.
Sorry to the OP for 'semi-hijacking' this thread with a 'me too!' response but hopefully my response will get someone to look into this as a matter of urgency.
To any non-Zimbra folks who want to reply with 'you should search the forum for the answer'; I would like to inform you that I have searched for every single combination of SSL/LDAP issues on this forum but cannot find any solution which I have not already tried that does not work - removing .zmcontrol.cache, etc, etc.
I look forward to a helpful and informative response from a Zimbra staffer.
Regards,
Terry Froy
Spilsby Internet Solutions