• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Trouble bypassing Trust Manager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble bypassing Trust Manager


  • Subject: Trouble bypassing Trust Manager
  • From: Mitch Saltykov <email@hidden>
  • Date: Tue, 3 Jul 2007 13:17:03 -0400

Hi, all, I wonder if someone has dealt with this kind of thing before:

We're setting up a WO app that would retrieve emails from an IMAPS server and process the data in those specific emails.  Trouble is, we're using a self-signed SSL certificate, and that winds me up with validation exceptions that prevent us from proceeding:

javax.mail.MessagingException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors;
  nested exception is:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors

This comes about at the connect line:
store = session.getStore(urln);
store.connect();

We tried applying the example here: http://www.exampledepot.com/egs/javax.net.ssl/TrustAll.html but couldn't figure out how to actually force the app to use that trustmanager instead of the default.  Since that solution relies on deprecated libraries anyway, I was hoping someone more in the know may be able to direct me to an up-to-date way to resolve the issue.

Thanks in advance, 

-- Mitch Saltykov
email@hidden
212-465-8484 x412


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Trouble bypassing Trust Manager
      • From: Mike Schrag <email@hidden>
    • Re: Trouble bypassing Trust Manager
      • From: Pascal Robert <email@hidden>
  • Prev by Date: Re: [OT] developing for the iPhone
  • Next by Date: Re: Trouble bypassing Trust Manager
  • Previous by thread: Re: [OT] developing for the iPhone
  • Next by thread: Re: Trouble bypassing Trust Manager
  • Index(es):
    • Date
    • Thread