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

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 11-26-2008, 04:59 PM
New Member
 
Posts: 3
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..
Reply With Quote
  #2 (permalink)  
Old 12-01-2008, 04:47 PM
New Member
 
Posts: 3
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?
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.