The "Using java code" section of: http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html would be the place to start. Basically, grab the http conduit out of the proxy and start configuring things on there. You would need to create an instance of TLSClientParameters and configure on a KeyManager and TrustManager and such and then call the conduit.setTlsClientParameters with it.
Dan On Wednesday 13 October 2010 6:57:56 am Mitja Slenc wrote: > Hi, > > I've been googling for a while, but can't find a solution for my problem.. > Please help :) > > We have a hosted service which we want to integrate with another external > service. The problem I have is that the external service uses client > certificates to identify callers. So we have to allow our users to upload > their keys and certificates, and of course use them when making calls. I > used wsdl2java to generate some classes, but they don't seem to have any > support for setting configuration, and any documentation I could find talks > about a single XML file, which doesn't seem appropriate. So what should I > do? > > To sum up - given 2 files (key + cert) and the key password at runtime, how > do I make a call to the external service using them? > > Any help much appreciated! > > > Best, > Mitja -- Daniel Kulp [email protected] http://dankulp.com/blog
