This is becoming ridiculous: I restored the /opt/zimbra tree from a backup I took before I touched any ssl stuff. Then I tried to install the commercial cert again:
1. created csr via web admin (I failed at several attempts to install the cert via web admin, thus I went back to command line tools for further steps) which left both the csr and key in /opt/zimbra/ssl/zimbra/commercial/
2. had my cert created by Digicert (luckily one can create additional certs for free once one has purchased a wild card cert) and downloaded
3. Instead of the Wiki document I mentioned in my previous post, I now followed this:
Administration Console and CLI Certificate Tools - Zimbra :: Wiki, which also claims to be certified, thus is expected to be somewhat trustworthy.
4. as I already had a commercial.key and commercial.csr (created by the web admin) I started with "cat /tmp/ca.crt /tmp/ca_intermediary.crt > /tmp/ca_chain.crt"
5. Then wanted to verify cert and key:
/opt/zimbra/bin/zmcertmgr verifycrt comm \
/opt/zimbra/ssl/zimbra/commercial/commercial.key /tmp/commercial.crt
Which failed until I temporarily copied /tmp/ca_chain.crt to /opt/zimbra/ssl/zimbra/commercial/commercial_ca.crt, then it worked:
mail:/opt/zimbra/backup root# /opt/zimbra/bin/zmcertmgr verifycrt comm /opt/zimbra/ssl/zimbra/commercial/commercial.key /tmp/commercial.crt
** Verifying /tmp/commercial.crt against /opt/zimbra/ssl/zimbra/commercial/commercial.key
Certificate (/tmp/commercial.crt) and private key (/opt/zimbra/ssl/zimbra/commercial/commercial.key) match.
Valid Certificate: /tmp/commercial.crt: OK
Now is the time to deploy it. I removed commercial_ca.crt from /opt/zimbra/ssl/zimbra/commercial and deployed:
mail:/opt/zimbra/backup root# /opt/zimbra/bin/zmcertmgr deploycrt comm /tmp/commercial.crt /tmp/commercial_ca.crt
** Verifying /tmp/commercial.crt against /opt/zimbra/ssl/zimbra/commercial/commercial.key
Certificate (/tmp/commercial.crt) and private key (/opt/zimbra/ssl/zimbra/commercial/commercial.key) match.
Valid Certificate: /tmp/commercial.crt: OK
** Copying /tmp/commercial.crt to /opt/zimbra/ssl/zimbra/commercial/commercial.crt
** Appending ca chain /tmp/commercial_ca.crt to /opt/zimbra/ssl/zimbra/commercial/commercial.crt
** Saving server config key zimbraSSLCertificate...done.
** Saving server config key zimbraSSLPrivateKey...done.
** Installing mta certificate and key...done.
** Installing slapd certificate and key...done.
** Installing proxy certificate and key...done.
** Creating pkcs12 file /opt/zimbra/ssl/zimbra/jetty.pkcs12...done.
** Creating keystore file /opt/zimbra/mailboxd/etc/keystore...done.
** Installing CA to /opt/zimbra/conf/ca...done.
mail:/opt/zimbra/backup root#
Looks good, doesn't it?
Now I switched to user zimbra for restarting all the services: "zmcontrol stop", then:
mail:~ zimbra$ zmcontrol start
Host mail.example.com
Starting ldap...Done.
Unable to determine enabled services from ldap.
Enabled services read from cache. Service list may be inaccurate.
What the hell am I doing wrong here?