5.x Commercial Certificates Guide
5.0.1_GA and later
Obtain your commercial certificate from your provider.
Note: You will also need the root CA and any intermediaries that the provider uses in PEM format.
Concatenate the root and intermediary files into a single file for use with zmcertmgr.
(a) sudo zmcertmgr deploycrt comm <cert file> <ca_chain file> (b) zmcontrol stop ; zmcontrol start
- Copy the certificate file(s) to /opt/zimbra/ssl/zimbra/commercial/ while naming it commercial.crt. If you have more than one cert file, please concatenate them into one file.
- Copy the private key to /opt/zimbra/ssl/zimbra/commercial/ while naming it commercial.key.
- Copy /opt/zimbra/ssl/zimbra/commercial/commercial.crt to /opt/zimbra/jetty/webapps/zimbraAdmin/tmp/current.crt. current.crt should be owned by zimbra:zimbra.
- Run this command:
/opt/zimbra/bin/zmcertmgr install comm
4.5x to 5.x failed cert
Check whether the tomcat alias still exist in the keystore. You can check with this command:
keytool -list -keystore /opt/zimbra/mailboxd/etc/keystore -storepass `zmlocalconfig -s -m nokey mailboxd_keystore_password`
If the above command returns two aliases (tomcat and jetty), please delete the tomcat alias with this command:
keytool -delete -alias tomcat -keystore /opt/zimbra/mailboxd/etc/keystore -storepass `zmlocalconfig -s -m nokey mailboxd_keystore_password`
If there are any errors from the above command, please send it to email@example.com.
Importing commercial certificates from other mail systems to Zimbra 5.x
If we have all the necessary pieces, you should be able to bring your commercial cert to Zimbra.
You need the following:
- The private key in a decrypted format
- All the cert files you received from the CA (intermediate and rootca)
- Make sure the Zimbra hostname is the same as the one on the cert
Here are the steps:
- Place your private key in /opt/zimbra/ssl/zimbra/commercial and name it commercial.key
- Make sure commercial.key permission is set to 700 and is owned by root:root
- Upload the certificate files via the admin console>certificates.
- Make sure to upload all the certificate files that you received from you CA (rootca,intermediate,...)
GoDaddy Certificate in 5.x
Assuming the following is correct:
- This is a new certificate.
- You generated the csr via the admin console
- You sent the csr to get it signed and you received the following files:
- (Root CA)
- The /opt/zimbra/ssl/zimbra/commercial has two files:
You can install the certificate by logging in to the admin console and uploading these files:
- (Root CA)
Once you have uploaded the above files, restart Zimbra services.
Install GoDaddy commercial certificate from the command line
- Download GoDaddy bundle from their primary Repo
- Reverse the certificate chain, so that your the chain of trust goes from general to specific. (e.g. Root CA, Intermediate, Intermeidate_cross, your cert). Save this file as commercial.crt under /opt/zimbra/ssl/zimbra/commercial.
- Copy your private key (must be named commercial.key) to /opt/zimbra/ssl/zimbra/commercial
- Copy files to other misc locations:
cp commercial.crt /opt/zimbra/mailboxd/webapps/zimbraAdmin/tmp/current.crt cp commercial.crt /opt/zimbra/jetty/webapps/zimbraAdmin/tmp/current.crt cp commercial.crt /opt/zimbra/mailboxd/webapps/zimbraAdmin/tmp/current_chain.crt
- 5. Install the cert
/opt/zimbra/bin/zmcertmgr install com
- 6. Restart Zimbra
This feedback was submitted by Dave Torre from San Mateo Regional Networks. Thanks Dave.