Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-11-2008, 10:14 AM
Active Member
 
Posts: 36
Default Jetty Cert in 5.0.1

Is there a special step I need to deploy a commercial cert to jetty with the new tools in 5.0.1?

I'm currently trying to deploy our existing commercial cert to a test box, I got the "zmcertmgr deploycrt comm" to work, however jetty is still using the self signed cert from install.

Last edited by janderson : 01-11-2008 at 01:41 PM.
Reply With Quote
  #2 (permalink)  
Old 01-11-2008, 01:39 PM
Active Member
 
Posts: 36
Default

This is what I ended up doing, not sure if it was the best method, but it did work!

put my.crt and my.key in the following:

/opt/zimbra/mailboxd/webapps/zimbraAdmin/tmp/current.key
/opt/zimbra/mailboxd/webapps/zimbraAdmin/tmp/current.crt

/opt/zimbra/ssl/zimbra/commercial/commercial.key
/opt/zimbra/ssl/zimbra/commercial/commercial.crt

put intermediate.cer
/opt/zimbra/mailboxd/webapps/zimbraAdmin/tmp/current_chain.crt

as root: /opt/zimbra/bin/zmcertmgr deploycrt comm

Add "jetty" alias to tomcat keystore
Overwrite /opt/zimbra/jetty/etc/keystore with tomcat keystore

Edit mailboxd_keystore_password, change password to match tomcat keystore

Restart services
Reply With Quote
  #3 (permalink)  
Old 01-11-2008, 04:04 PM
Junior Member
 
Posts: 9
Default

Quote:
Originally Posted by janderson View Post
Add "jetty" alias to tomcat keystore
Overwrite /opt/zimbra/jetty/etc/keystore with tomcat keystore
What do you mean by this?

Thanks!
Reply With Quote
  #4 (permalink)  
Old 01-11-2008, 04:27 PM
Zimbra Employee
 
Posts: 538
Default

5.0.1 supports command line install of the commercial cert.

Code:
sudo zmcertmgr deploycrt comm <crt file> <ca chain file>
This will automatically deploy the cert to the jetty keystore. You may have to manually delete the existing tomcat entry if it's expired.

Code:
keytool -list -keystore /opt/zimbra/mailboxd/etc/keystore -storepass `zmlocalconfig -m nokey mailboxd_keystore_password`
keytool -delete -alias tomcat -keystore /opt/zimbra/mailboxd/etc/keystore -storepass `zmlocalconfig -m nokey mailboxd_keystore_password`
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 01-11-2008, 06:33 PM
Junior Member
 
Posts: 9
Default

Quote:
Originally Posted by brian View Post
5.0.1 supports command line install of the commercial cert.

Code:
sudo zmcertmgr deploycrt comm <crt file> <ca chain file>
This will automatically deploy the cert to the jetty keystore. You may have to manually delete the existing tomcat entry if it's expired.

Code:
keytool -list -keystore /opt/zimbra/mailboxd/etc/keystore -storepass `zmlocalconfig -m nokey mailboxd_keystore_password`
keytool -delete -alias tomcat -keystore /opt/zimbra/mailboxd/etc/keystore -storepass `zmlocalconfig -m nokey mailboxd_keystore_password`
Perfect, this fixed my issue!!!
Reply With Quote
  #6 (permalink)  
Old 01-11-2008, 06:35 PM
Junior Member
 
Posts: 9
Thumbs up

Quote:
Originally Posted by brian View Post
5.0.1 supports command line install of the commercial cert.

Code:
sudo zmcertmgr deploycrt comm <crt file> <ca chain file>
This will automatically deploy the cert to the jetty keystore. You may have to manually delete the existing tomcat entry if it's expired.

Code:
keytool -list -keystore /opt/zimbra/mailboxd/etc/keystore -storepass `zmlocalconfig -m nokey mailboxd_keystore_password`
keytool -delete -alias tomcat -keystore /opt/zimbra/mailboxd/etc/keystore -storepass `zmlocalconfig -m nokey mailboxd_keystore_password`
Perfect, this fixed my issue!!!

Thank you!
Reply With Quote
  #7 (permalink)  
Old 01-14-2008, 08:00 AM
Active Member
 
Posts: 36
Default

Quote:
Originally Posted by brian View Post
5.0.1 supports command line install of the commercial cert.

Code:
sudo zmcertmgr deploycrt comm <crt file> <ca chain file>
This will automatically deploy the cert to the jetty keystore. You may have to manually delete the existing tomcat entry if it's expired.

Code:
keytool -list -keystore /opt/zimbra/mailboxd/etc/keystore -storepass `zmlocalconfig -m nokey mailboxd_keystore_password`
keytool -delete -alias tomcat -keystore /opt/zimbra/mailboxd/etc/keystore -storepass `zmlocalconfig -m nokey mailboxd_keystore_password`
The deploycert in 5.0.1 deployed to everything but jetty for me, perhaps I should file a bug.
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0