Hello Bastian,

> I am not sure, but I think I have to create a
> MySSLSocketFactory <object> if I want to
> authentificate with a certificate at a server.

No. You have to implement _your_own_ SSLSocketFactory.
Rename MySSLSocketFactory to a name of your choice
and add any code you need there.

> My problem is how to read a certificate from a
> PKCS#12 file and bind it to this <object>.
> 
> I found something at the Sun pages to read this kind
> of file with the keytool and export the certificate.

Then add that code to your SSLSocketFactory.

> There was also something how to create a truststore
> with the keytool, and how to import the root
> certificate from the server.
> 
> Is there a way HttpClient supports me by creating
> or reading this kind of files ?

No. HttpClient is for HTTP, not for PKCS or SSL.
The scope of HttpClient is also explained in the primer:
http://wiki.apache.org/jakarta-httpclient/ForAbsoluteBeginners#head-e5df784207b3082d88f0c254a0b656275c2b2855

cheers,
  Roland


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

Reply via email to