Below is my CXF client which use SSL. I have put server's certificate in my
client side. 
How to change it to let it accept all/any certificates from server??

        QName SERVICE_NAME = new QName("http://spring.demo/";,
"HelloWorldService");        
        HelloWorldService ss = new HelloWorldService(wsdlURL, SERVICE_NAME);
        HelloWorld port = ss.getHelloWorldPort();  
        org.apache.cxf.endpoint.Client c = ClientProxy.getClient(port);

        HTTPConduit httpConduit = (HTTPConduit) c.getConduit();        
        TLSClientParameters tlsParams = new TLSClientParameters();
        tlsParams.setSecureSocketProtocol("SSL");
        try {
            tlsParams.setKeyManagers(getKeyManagers());
            tlsParams.setTrustManagers(getTrustManagers());
        } catch (IOException e) {
                e.printStackTrace();
        }       
        httpConduit.setTlsClientParameters(tlsParams); 
-- 
View this message in context: 
http://www.nabble.com/how-to-let-cxf-client-accept-all-any-certificates-tp15562373p15562373.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to