View Single Post
  #8 (permalink)  
Old 01-26-2008, 12:25 PM
solarsail solarsail is offline
Intermediate Member
 
Posts: 16
Default

Quote:
Originally Posted by gmsmith View Post
What steps did you use to extract your cert and private key from the keystore?
To extract the cert:
Code:
keytool -keystore commercial.keystore -export -alias tomcat -file exported.crt
openssl x509 -out commercial.crt -outform pem -text -in exported.crt -inform der
To extract the key (You want to use the old version of ExportPriv.java, the new one doesn't wrap the base64 in a way zmcertmgr can handle):
Code:
 
curl http://mark.foster.cc/pub/java/ExportPriv.old.java > ExportPriv.java
javac ExportPriv.java
java ExportPriv commercial.keystore tomcat zimbra >commercial.key
Reply With Quote