Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 9295 invoked from network); 11 May 2004 14:56:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 May 2004 14:56:06 -0000 Received: (qmail 94330 invoked by uid 500); 11 May 2004 14:57:14 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 94200 invoked by uid 500); 11 May 2004 14:57:13 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 94172 invoked by uid 98); 11 May 2004 14:57:13 -0000 Received: from olegk@bluewin.ch by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(195.186.4.229):. Processed in 0.081964 secs); 11 May 2004 14:57:13 -0000 X-Qmail-Scanner-Mail-From: olegk@bluewin.ch via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(195.186.4.229):. Processed in 0.081964 secs) Received: from unknown (HELO mail6.bluewin.ch) (195.186.4.229) by hermes.apache.org with SMTP; 11 May 2004 14:57:13 -0000 Received: from mssbzhb-int.msg.bluewin.ch (195.186.1.230) by mail6.bluewin.ch (Bluewin AG 7.0.027) id 4055A1BD009D2A5E for commons-user@jakarta.apache.org; Tue, 11 May 2004 14:55:53 +0000 Received: from [172.21.1.219] by mssbzhb-int.msg.bluewin.ch with HTTP; Tue, 11 May 2004 14:55:52 +0000 Date: Tue, 11 May 2004 16:55:52 +0200 Message-ID: <408FE7090006B2C5@mssbzhb-int.msg.bluewin.ch> In-Reply-To: From: olegk@bluewin.ch Subject: RE: [HttpClient] Unsigned Certificates & EasySSLProtocolSocketFactory To: "Jakarta Commons Users List" MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Mailer: Bluewin WebMail / BlueMail X-Originating-IP: 172.21.1.219 X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Dennis There are two branches of HttpClient: 2.0 (stable) and development (unstable, which will eventually become 3.0). The SSL guide unfortunately points at the development branch (HEAD) instead of (HTTPCLIENT_2_0_BRANCH). I was long going to fix the problem but there had always been more pressing issues I needed to turn my attention to. I'll do my (very) best to fix the SSL guide tonight. Meanwhile use the link below to get the 2.0 version of the easy SSL protocol factory: http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/contrib/org/apache/commons/httpclient/contrib/ssl/?only_with_tag=HTTPCLIENT_2_0_BRANCH Oleg >-- Original Message -- >Reply-To: "Jakarta Commons Users List" >To: Jakarta Commons >From: Dennis Crall >Subject: [HttpClient] Unsigned Certificates & EasySSLProtocolSocketFactory >Date: Tue, 11 May 2004 09:44:32 -0500 > > >Hi, > >I'm having problems getting HttpClient to work with unsigned >certificates over https. Using HttpClient right out of the box, I get >the following exception: > > javax.net.ssl.SSLHandshakeException: >sun.security.validator.ValidatorException: No trusted certificate found > >So I looked at the documentation a bit more carefully and discovered >EasySSLProtocolSocketFactory. This class apparently solves my problem, >but I can not get it to compile. Nor can I get EasyX509TrustManager to >compile. Strangely enough the compiler is telling me that certain >classes in HttpClient do not exist. Specifically, the following five >lines: > >import org.apache.commons.httpclient.ConnectTimeoutException; >import org.apache.commons.httpclient.HttpClientError; >import org.apache.commons.httpclient.params.HttpConnectionParams; >import >org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory; >import org.apache.commons.httpclient.protocol.ReflectionSocketFactory; > >And this is from within a project where I can build the >HttpClientTutorial with no problem. So I guess my questions are: > >1.) Is there anywhere I can download a jar of the >org.apache.commons.httpclient.contrib.ssl package? > >2.) Is there an obvious reason why the compiler is not seeing the >classes listed above? Is EasySSLProtocolSocketFactory compatible with >HttpClient 2.0? I am working with HttpClient 2.0 on Mac OS X 10.3 and >Java 1.4.1. > >Any advice is appreciated, > >Dennis Crall > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org