On Friday 28 March 2008, [EMAIL PROTECTED] wrote:
> Thank you Dan for your answer,
> I must say I am currently using cxf 2.0.5 snapshot (with label
> 20080206.174046-1).
Yea. That's too old. The https stuff was updated on 20080303.
> Please could you be so kind to tell me what's the correct procedure to
> make server and client talk via https?
> Moreover I don't understand why if I configure the client (in cxf.xml)
> to use my keystore and truststore, java_home/lib/security/cacerts is
> always used (it looks as if my two jks files are not used at all).
Honestly, I'm not really sure. Part of the reason I spent time fixing
the https stuff was that I was having issues figuring out some of it.
https wasn't just a "set an https url and it works" type thing.
You could try programatically setting things. It might be an issue with
trying to pick things up from the xml.
MyProxy port = service.getMyProxy();
Client client = ClientProxy.getClient(port);
HTTPConduit httpConduit = (HTTPConduit) client.getConduit();
TLSClientParameters tlsParams = new TLSClientParameters();
tlsParams.setSecureSocketProtocol("SSL");
tlsParams.set........
httpConduit.setTlsClientParameters(tlsParams);
--
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog