commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Costin Manolache <cmanola...@yahoo.com>
Subject Re: httpclient client certificate authentication
Date Thu, 13 Feb 2003 20:20:18 GMT
Eric Johnson wrote:

> Hello,
> 
> I was looking into using the httpclient in an
> application that requires client certificate
> authentication.  According to the JSSE documentation,
> the mechanism for doing this is to get your
> SSLSocketFactory from an SSLContext, which allows you
> to specify the KeyManager and TrustManager.  I plan on
> writing my own implementation of the
> SecureProtocolSocketFactory that takes a SSLContext as
> an argument for a constructor and has a
> SSLSocketFactory field.  I just thought I'd pass this
> along as it might be a nice addition to
> SSLProtocolSocketFactory.  I have no need of it, but
> if anyone has an idea of how to specify a particular
> HostNameVerifier similar to SUN's method in
> HttpsUrlConnection, that might also be a nice
> addition.


You can check the FakeTrusteSocketFactory in xml-axis - it 
implements what you (seem to) need.

Costin


> 
> BTW, if anyone has a strong opinion on whether I
> should even consider http-client for my application,
> please feel free to share it with me.  I realize it's
> only at alpha2, but my options have pretty well been
> narrowed down to rolling my own feature starved
> httpclient, mucking about with the sun.net... client,
> or using the commons-httpclient.
> 
> Regards,
> 
> Eric
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message