Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 61349 invoked from network); 15 Jan 2007 23:51:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jan 2007 23:51:37 -0000 Received: (qmail 81918 invoked by uid 500); 15 Jan 2007 23:51:42 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 81866 invoked by uid 500); 15 Jan 2007 23:51:42 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 81855 invoked by uid 99); 15 Jan 2007 23:51:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jan 2007 15:51:42 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [12.6.244.34] (HELO airmail.wirelessworld.airvananet.com) (12.6.244.34) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jan 2007 15:51:33 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Supporting HTTPS\SSL Date: Mon, 15 Jan 2007 18:49:38 -0500 Message-ID: <8F798BFDA851B943B3A1B2510E92878502F3BA1F@airmail.wirelessworld.airvananet.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Supporting HTTPS\SSL Thread-Index: Acc4/sl04D1ss6IPQu++nFzP99pbzgAAC0Pw From: "Rajat Sharma" To: "HttpClient User Discussion" X-Virus-Checked: Checked by ClamAV on apache.org I was doing exactly that and while making it work, I see this compile error.=20 On line : new TrustManager[] {new EasyX509TrustManager(null)},=20 Exact error is as follows :=20 http.org.apache.commons.httpclient.contrib.ssl.EasyX509TrustManager required: javax.net.ssl.TrustManager Error:Error:line (127)incompatible types I have copied both the required files. The files are in the right dirs. This error looks very silly to me. Since EastX509TrustManager implements X509TrustManager which extends javax.net.ssl.TrustManager. This should have worked.....then what's wrong in here?? Rajat=20 -----Original Message----- From: David J. M. Karlsen [mailto:david@davidkarlsen.com]=20 Sent: Monday, January 15, 2007 6:43 PM To: HttpClient User Discussion Subject: Re: Supporting HTTPS\SSL Rajat Sharma wrote: > Okay, I made some progress on this one. But, getting a certificate > Exception and it is as follows :=20 > > javax.net.ssl.SSLHandshakeException: > sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to > find valid certification path to requested target > =20 You have to import the signing CA into your keyring, or use a less=20 restrictive implementation, like http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/httpclient/trun k/src/contrib/org/apache/commons/httpclient/contrib/ssl/EasySSLProtocolS ocketFactory.java?view=3Dmarkup See instructions on the same page as mentioned earlier. David --=20 David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.com --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org