Results 1 to 2 of 2

Thread: SSL Cert Problem using SOAP API

  1. #1
    Join Date
    May 2006
    Posts
    7
    Rep Power
    9

    Default SSL Cert Problem using SOAP API

    Hi,

    I'm in the process of developing an integration with Zimbra and attempting to use the SOAP classes already available within the Zimbra framework. The problem that I am having is that the calls to Zimbra admin/soap URL uses an SSL connection and my app is dying with the following stack trace. I'm pretty certain that it has to do with the fact that the certificate being served up is self-signed and the JRE that my client envirnoment doesn't know cert authority.

    I've been researching this and find various docs that explain how to export the cert from IE and then to use the JRE\bin\keytool to import the certificate. I have been unsuccessful installing the cert into the default keystore because I'm unable to determine the default password for the keystore.

    Does anybody have any experience with this and any recommendations?

    Thanks,

    John


    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
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLExceptio n(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(U nknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Un known Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Un known Source)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serv erCertificate(Unknown Source)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.proc essMessage(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoo p(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_re cord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRec ord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.perform InitialHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRe cord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write (Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.flush(Unknown Source)
    at java.io.FilterOutputStream.flush(Unknown Source)
    at org.apache.commons.httpclient.methods.StringReques tEntity.writeRequest(StringRequestEntity.java:150)
    at org.apache.commons.httpclient.methods.EntityEnclos ingMethod.writeRequestBody(EntityEnclosingMethod.j ava:495)
    at org.apache.commons.httpclient.HttpMethodBase.write Request(HttpMethodBase.java:1973)
    at org.apache.commons.httpclient.HttpMethodBase.execu te(HttpMethodBase.java:993)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteWithRetry(HttpMethodDirector.java:397)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteMethod(HttpMethodDirector.java:170)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:396)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:324)
    at com.zimbra.soap.SoapHttpTransport.invoke(SoapHttpT ransport.java:192)
    at com.zimbra.soap.SoapTransport.invoke(SoapTransport .java:168)
    at com.zimbra.cs.client.soap.LmcSoapRequest.invoke(Lm cSoapRequest.java:131)
    at src.java.com.ap.postoffice.Test1.main(Test1.java:3 6)
    Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target
    at sun.security.validator.PKIXValidator.doBuild(Unkno wn Source)
    at sun.security.validator.PKIXValidator.engineValidat e(Unknown Source)
    at sun.security.validator.Validator.validate(Unknown Source)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl. checkServerTrusted(Unknown Source)
    at com.sun.net.ssl.internal.ssl.JsseX509TrustManager. checkServerTrusted(Unknown Source)
    ... 23 more
    Caused by: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target
    at sun.security.provider.certpath.SunCertPathBuilder. engineBuild(Unknown Source)
    at java.security.cert.CertPathBuilder.build(Unknown Source)
    ... 28 more

  2. #2
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    password should be 'zimbra'
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

Similar Threads

  1. Replies: 1
    Last Post: 05-15-2009, 09:04 PM
  2. Problem with SSL certificate.
    By flums in forum Zimbra Mobile
    Replies: 0
    Last Post: 05-07-2007, 01:10 AM
  3. Replies: 2
    Last Post: 03-25-2007, 10:40 PM
  4. SMTP SSL Problem
    By nexus in forum Installation
    Replies: 8
    Last Post: 03-15-2007, 08:26 AM
  5. How to consume zimbra SOAP API in my java application
    By Hemant Shrivastava in forum Developers
    Replies: 34
    Last Post: 12-24-2006, 01:24 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
  •