You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Joao Luis Pinto <jp...@inescporto.pt> on 2004/02/25 17:50:51 UTC

Connecting to service with HTTPS using several client certificate authentication

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear all

I am using Axis 1.1 with Tomcat 5.0.16 and Sun J2SE 1.4.

I am building a client application that connects to remote services
through SSL requiring client authentication, using several different
certificates stored in the same keystore file. The idea is to have the
service only allowing connections authenticated with the same
certificate of the enclosed XML digital signature, and to have the
application emulating several clients.

Before using Axis (and SOAP) I was using raw HTTPS and XML for the
connection, and changed the SocketFactory for each of the connecting
clients (running in the same application) creating a custom
SSLSocketFactory by implementing a KeyManager that returned a single
certificate, specific to the connections in question.

My question is: how do I set the SSLSocketFactory a particular SOAP call
uses with Axis? I cannot use the parameter method, since it interferes
with the whole application, right?

Any help is much appreciated...

Thank you

João Luis
- --
INESC Porto - Power Systems Unit - http://power.inescn.pt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAPNJrplvT4bMzQewRAv2CAKCVNEzTt1xXb8bZkzyhDTqNFA4TPgCgr9gf
jProWsqF7bFr3Dn6o6qpZA0=
=4bAa
-----END PGP SIGNATURE-----