hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kalnichevski, Oleg" <oleg.kalnichev...@bearingpoint.com>
Subject RE: Mutual SSL Authentication Using HTTP Client
Date Thu, 27 Mar 2003 11:48:25 GMT
Hi Max,

We do not have such an example available. This is as close as it gets:

http://cvs.apache.org/viewcvs/jakarta-commons/httpclient/src/contrib/org/apache/commons/httpclient/contrib/ssl/

EasyX509TrustManager.java & EasySSLProtocolSocketFactory.java classes extend standard
SSL classes in order to allow for authentication against an HTTP server with self-signed certificate.
You are likely to have to follow the same pattern: provide a custom X509TrustManager and a
custom ProtocolSocketFactory. 

Oleg

-----Original Message-----
From: Max Johnson [mailto:max.johnson@flytxt.com]
Sent: Thursday, March 27, 2003 12:07
To: commons-httpclient-dev@jakarta.apache.org
Subject: Mutual SSL Authentication Using HTTP Client


Does anyone have a simple example of configuring the HTTP Client to connect
to a secure server that demands client authentication. i.e. an example where
the client has to retrieve the appropriate digital certificate and private
key from its keystore and then initialise the HTTP Client accordingly.

Preferably the example will use JDK1.4 but examples that use earlier
versions are also much appreciated.

Regards

Max


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


Mime
View raw message