Return-Path: Delivered-To: apmail-jakarta-httpclient-dev-archive@www.apache.org Received: (qmail 22052 invoked from network); 5 Jul 2006 11:29:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2006 11:29:41 -0000 Received: (qmail 68616 invoked by uid 500); 5 Jul 2006 11:29:40 -0000 Delivered-To: apmail-jakarta-httpclient-dev-archive@jakarta.apache.org Received: (qmail 68589 invoked by uid 500); 5 Jul 2006 11:29:40 -0000 Mailing-List: contact httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "HttpClient Project" Reply-To: "HttpClient Project" Delivered-To: mailing list httpclient-dev@jakarta.apache.org Received: (qmail 68577 invoked by uid 99); 5 Jul 2006 11:29:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 04:29:40 -0700 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,RCVD_IN_NJABL_PROXY,RCVD_IN_SORBS_SOCKS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.163.178.143] (HELO web34311.mail.mud.yahoo.com) (66.163.178.143) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 05 Jul 2006 04:29:36 -0700 Received: (qmail 80712 invoked by uid 60001); 5 Jul 2006 11:29:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Nc8rcCZnsEl37s4F1RsTqxV1+vZeZ8wLruWDDDpO3GJHMrGQRkBZ77Ku9nEvt4xX0+T3XW7hH8cOr8fI60Po93T5vFYHeIO9b9c0S2Aa//O+CTQ5kH5MLtZDlKjFTf3y1UE2U0gkP/GPUo7AVrlOXcannQMF2StxLSPALw1Liw4= ; Message-ID: <20060705112915.80710.qmail@web34311.mail.mud.yahoo.com> Received: from [59.93.77.57] by web34311.mail.mud.yahoo.com via HTTP; Wed, 05 Jul 2006 04:29:15 PDT Date: Wed, 5 Jul 2006 04:29:15 -0700 (PDT) From: Dhanasekaran Vivekanandhan Subject: Re: connecting to htttps site failed if certificate is expired To: HttpClient Project In-Reply-To: <44AB6CA4.2080503@odi.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dear Ortwin, thanks for the reply. I am done with using 1.EasySSLProtocolSocketFactory (http://svn.apache.org/viewvc/jakarta/commons/proper/httpclient/trunk/src/contrib/org/apache/commons/httpclient/contrib/ssl/EasySSLProtocolSocketFactory.java?view=markup) 2.EasyX509TrustManager.java (http://svn.apache.org/repos/asf/jakarta/commons/proper/httpclient/trunk/src/contrib/org/apache/commons/httpclient/contrib/ssl/EasyX509TrustManager.java) In the checkServerTrusted method of EasyX509TrustManager.java , I am calling standardTrustManager.checkServerTrusted() method only if the expiry date is less than sysdate. if the certificate is expired , i wont call this method.this solves my issue that if the certificate is expired ,it will not throw sun.security.validator.ValidatorException: thanks Ortwin once again for ur immediate reply. dhanasekaran --- Ortwin Gl�ck wrote: > Hi, > > This is an issue of your JSSE implementation (the > one by Sun) and not > HttpClient. Thus we can only offer limited support. > > I guess you need to implement a suitable > TrustManager that allows for > this case. You may want to have a look at the > contrib code: > http://svn.apache.org/repos/asf/jakarta/commons/proper/httpclient/trunk/src/contrib/org/apache/commons/httpclient/contrib/ssl/ > Maybe there is also a config option to achieve this. > I don't know. > > Cheers > > Ortwin > > Dhanasekaran Vivekanandhan wrote: > > Hi All, > > I am using HttpClient and GetMethod classes to > connect > > to a https site,but the certificate provided by > the > > site is expired.so I am getting the following > > exception.Is there a way to connect to https site > even > > if the certificate provided by the site is expired > > Exception: > > --------- > > ": sun.security.validator.ValidatorException: PKIX > > path building failed: > > > sun.security.provider.certpath.SunCertPathBuilderException: > > unable to find valid certification path to > requested target" > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > httpclient-dev-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: > httpclient-dev-help@jakarta.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > httpclient-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > httpclient-dev-help@jakarta.apache.org > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org