Results 1 to 5 of 5

Thread: Private key extraction no longer works

  1. #1
    InternetGuy is offline Intermediate Member
    Join Date
    Mar 2007
    Location
    Rancho Santa Fe, CA
    Posts
    15
    Rep Power
    8

    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.

  2. #2
    azilber is offline Senior Member
    Join Date
    Feb 2007
    Posts
    52
    Rep Power
    8

    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.

  3. #3
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    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.

  4. #4
    azilber is offline Senior Member
    Join Date
    Feb 2007
    Posts
    52
    Rep Power
    8

    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

  5. #5
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Thanks a bunch for updating the wiki!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. installing on gutsy fails
    By james-m in forum Installation
    Replies: 9
    Last Post: 11-27-2007, 07:46 AM
  2. Still fighting with Split DNS
    By frankb in forum Installation
    Replies: 5
    Last Post: 11-20-2007, 10:52 AM
  3. Replies: 2
    Last Post: 06-29-2007, 10:32 AM
  4. Initializing ldap...FAILED (256) on Mac OSX 10.4.4
    By kenzoida in forum Installation
    Replies: 19
    Last Post: 02-14-2007, 12:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •