commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: [HttpClient] Unsigned Certificates & EasySSLProtocolSocketFactory
Date Tue, 11 May 2004 14:55:52 GMT

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:


>-- 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
>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:
> 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 
>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.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:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message