Recreating a Self-Signed SSL Certificate in ZCS 4.5 & 5.0

Revision as of 20:14, 2 March 2006 by Marcmac (talk | contribs) (Fix my_ca deletion instructions)

Self Signed Certificate Instructions

If you're working with a commercial certificate, check out this page

To clean up SSL certificates and recreate a new self-signed cert try this:

as root:

rm -rf /opt/zimbra/ssl
mkdir /opt/zimbra/ssl
chown zimbra:zimbra /opt/zimbra/ssl

su - zimbra

keytool -delete -alias my_ca -keystore /opt/zimbra/java/jre/lib/security/cacerts -storepass changeit
keytool -delete -alias tomcat -keystore /opt/zimbra/tomcat/conf/keystore -storepass zimbra
zmcertinstall mailbox ssl/ssl/server/server.crt
zmcertinstall mta ssl/ssl/server/server.crt ssl/ssl/server/server.key

To install a commercial SSL certificate first remove the self-signed cert:

keytool -delete -alias tomcat -keystore /opt/zimbra/tomcat/conf/keystore -storepass zimbra
keytool -delete -alias my_ca -keystore /opt/zimbra/tomcat/conf/keystore -storepass zimbra

Then using your new certificate and key run:

zmcertinstall mailbox ssl/ssl/server/commercial.crt
zmcertinstall mta ssl/ssl/server/commercial.crt ssl/ssl/server/commercial.key

Jump to: navigation, search