Re: client-certificate authentication

2004-09-28 Thread Oleg Kalnichevski
Mark,
We do not have a full-blown tutorial on this subject as SSL
authentication is basically is out of HttpClient scope.

This sample code does, however, have extensive javadocs on the matter. 

http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/contrib/org/apache/commons/httpclient/contrib/ssl/AuthSSLProtocolSocketFactory.java?only_with_tag=HTTPCLIENT_2_0_BRANCHview=markup

The two other files required to compile AuthSSLProtocolSocketFactory can
found here
http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/contrib/org/apache/commons/httpclient/contrib/ssl/?only_with_tag=HTTPCLIENT_2_0_BRANCH

Hope this helps

Oleg

On Tue, 2004-09-28 at 23:00, Mark Wilcox wrote:
 Hi,
 Is there any documentation on how to do client-certificate authentication
 with HTTPClient?
 
 I didn't see anything in the SSL docs on the web site or via Google.
 
 Thanks,
 Mark
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Client Certificate Authentication Question

2003-10-27 Thread Ortwin Glück
It just means you need to write your own Socket factory that returns a 
socked configured with the client certificate! Of yourse you can use 
HttpClient.

Odi

Dan Tran wrote:
Odi, thanks for the suggestion.  Does it mean, I will not be able to use
HttpClient at all?
Many thanks

-Dan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Client Certificate Authentication Question

2003-10-24 Thread Ortwin Glück
Dan Tran wrote:
The question here is how to I configure EasySSLProtocolSocketFactory to handle client certificate?
This is completely implementation dependent.

For JSSE take a look at

http://java.sun.com/j2se/1.4.1/docs/guide/security/jsse/samples/sockets/client/SSLSocketClientWithClientAuth.java

HTH

Odi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Client Certificate Authentication Question

2003-10-23 Thread Dan Tran
Hello, I need to use httpclient rc2 to communiate with a untrusted server (self sign). 
 The server also requires the client to send a client certificate.

Handling untrusted connection over https is straight forward
according to the example in EasySSLProtocolSocketFactory. 

The question here is how to I configure EasySSLProtocolSocketFactory to handle client 
certificate?
Given the fact that I do have client certificate at the httpclient side.

Please advice and many thanks

-Dan