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 Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-2008, 06:59 PM
Member
 
Posts: 12
Default Private key extraction no longer works

The private key extraction procedure given at
Commercial Certificates - Zimbra :: Wiki
no longer works.

D. Extract the private key for use with postfix, perdition, ldap

# /opt/zimbra/java/bin/javac ExportPriv.java
ExportPriv.java:5: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
import sun.misc.BASE64Encoder;
^
ExportPriv.java:32: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
BASE64Encoder myB64 = new BASE64Encoder();
^
ExportPriv.java:32: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
BASE64Encoder myB64 = new BASE64Encoder();
^
3 warnings

# /opt/zimbra/java/bin/java ExportPriv /opt/zimbra/ssl/ssl/commercial.keystore tomcat zimbra > /opt/zimbra/ssl/ssl/commercial.key
Exception in thread "main" java.lang.NoClassDefFoundError: ExportPriv

At this point /opt/zimbra/ssl/ssl/commercial.key is empty.
Reply With Quote
  #2 (permalink)  
Old 01-11-2008, 06:33 PM
Senior Member
 
Posts: 52
Default Same problem

Quote:
Originally Posted by InternetGuy View Post
The private key extraction procedure given at
Commercial Certificates - Zimbra :: Wiki
no longer works.

D. Extract the private key for use with postfix, perdition, ldap

# /opt/zimbra/java/bin/javac ExportPriv.java
ExportPriv.java:5: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
import sun.misc.BASE64Encoder;
^
ExportPriv.java:32: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
BASE64Encoder myB64 = new BASE64Encoder();
^
ExportPriv.java:32: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
BASE64Encoder myB64 = new BASE64Encoder();
^
3 warnings

# /opt/zimbra/java/bin/java ExportPriv /opt/zimbra/ssl/ssl/commercial.keystore tomcat zimbra > /opt/zimbra/ssl/ssl/commercial.key
Exception in thread "main" java.lang.NoClassDefFoundError: ExportPriv

At this point /opt/zimbra/ssl/ssl/commercial.key is empty.
I'm having the same exact issue. Those instructions are only compatible with Java 1.5. Unfortunately this just wasted 2 hours of my time and I had to roll back the changes. I'll heading off to file a support request, Zimbra really needs to get on the ball about commercial certs. It's a year later and still all we have are outdated wiki info.
Reply With Quote
  #3 (permalink)  
Old 01-11-2008, 07:47 PM
Moderator
 
Posts: 6,237
Default

Have you seen some of the CLI methods posted here Jetty Cert in 5.0.1
zmcertmgr deploycrt comm <crt file> <ca chain file>
Note: If your cert authority has a root ca plus intermediaries you'll need to concatenate them into one file.)
Or tried the new admin console certs wizard at all by chance?

Last edited by mmorse; 04-14-2008 at 09:19 PM..
Reply With Quote
  #4 (permalink)  
Old 01-11-2008, 10:18 PM
Senior Member
 
Posts: 52
Default Fix

Quote:
Originally Posted by InternetGuy View Post
The private key extraction procedure given at
Commercial Certificates - Zimbra :: Wiki
no longer works.

D. Extract the private key for use with postfix, perdition, ldap

# /opt/zimbra/java/bin/javac ExportPriv.java
ExportPriv.java:5: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
import sun.misc.BASE64Encoder;
^
ExportPriv.java:32: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
BASE64Encoder myB64 = new BASE64Encoder();
^
ExportPriv.java:32: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
BASE64Encoder myB64 = new BASE64Encoder();
^
3 warnings

# /opt/zimbra/java/bin/java ExportPriv /opt/zimbra/ssl/ssl/commercial.keystore tomcat zimbra > /opt/zimbra/ssl/ssl/commercial.key
Exception in thread "main" java.lang.NoClassDefFoundError: ExportPriv

At this point /opt/zimbra/ssl/ssl/commercial.key is empty.
I hacked up the code and updated the wiki.
Commercial Certificates - Zimbra :: Wiki
Reply With Quote
  #5 (permalink)  
Old 01-11-2008, 10:29 PM
Moderator
 
Posts: 6,237
Default

Thanks a bunch for updating the wiki!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.