Results 1 to 2 of 2

Thread: Using zmmailbox to access a server with a self signed cert

  1. #1
    Join Date
    Nov 2008
    Posts
    3
    Rep Power
    6

    Default Using zmmailbox to access a server with a self signed cert

    Hi,

    I am trying to migrate contact and calendar info for a mailbox on a Zimbra 4.5 server to a mailbox on a Zimbra 5.0.10 server. I am attempting to use zimbraMigrate.sh that is a part of the ZCStools.

    When the zimbraMigrate.sh script invokes zmmailbox to get a list of the user's folders, it crashes with:

    ERROR: zclient.IO_ERROR (invoke sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target, server: zimbra.mycompany.com) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target)

    The Zimbra 4.5 server has a self signed cert and I believe this is causing zmmailbox to fail to connect. Is there anyway to disable the cert check in zmmailbox?

    Thanks



    OK, I figured out I needed to add the self made CA cert to Java's list of trusted CAs (/opt/zimbra/java/jre/lib/security/cacerts). I did that with:

    keytool -import -trustcacerts -alias "aliasname" -file my-ca.crt -keystore /opt/zimbra/java/jre/lib/security/cacerts

    Now the problem is zmmailbox errors with:
    ERROR: service.AUTH_REQUIRED (no valid authtoken present)

    I'm just trying to list a user's folders with:
    /opt/zimbra/bin/zmmailbox -u Domain Name Registration, E-mail, Web Hosting -a admin@mydomain.com -p adminpassword -m username getAllFolders

    Any ideas?
    Last edited by mathia; 12-01-2008 at 04:52 PM.

  2. #2
    Join Date
    Nov 2008
    Posts
    3
    Rep Power
    6

    Default

    OK, I figured out I needed to add the self made CA cert to Java's list of trusted CAs (/opt/zimbra/java/jre/lib/security/cacerts). I did that with:

    keytool -import -trustcacerts -alias "aliasname" -file my-ca.crt -keystore /opt/zimbra/java/jre/lib/security/cacerts

    Now the problem is zmmailbox errors with:
    ERROR: service.AUTH_REQUIRED (no valid authtoken present)

    I'm just trying to list a user's folders with:
    /opt/zimbra/bin/zmmailbox -u Domain Name Registration, E-mail, Web Hosting -a admin@mydomain.com -p adminpassword -m username getAllFolders

    Any ideas?

Similar Threads

  1. Erorr..initializing ldap failed(5362)
    By Logan_filter in forum Installation
    Replies: 10
    Last Post: 12-19-2008, 12:10 PM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  3. Error after installation
    By robsontuxlinux in forum Installation
    Replies: 13
    Last Post: 09-11-2008, 09:48 PM
  4. Error loading on Mac OS X 10.4.10 server PPC
    By qprcanada in forum Installation
    Replies: 7
    Last Post: 10-26-2007, 06:25 AM
  5. Can't access the server anymore
    By goetzi in forum Administrators
    Replies: 11
    Last Post: 12-23-2005, 12:15 PM

Posting Permissions

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