On 20/04/15 14:34, smq wrote:
The differences I can see:
- you are calling ClientBuilder.build() - in my CXF3.0.4, ClientBuilder does
not have build() method, so I am using newClient()

I'm not calling a static .build() method, I'm calling it on a ClientBuilder instance

- you are setting keyStore

As I said - that is not needed if no two-way TLS is required

- you are setting trustManager

Yes. My understanding this is needed if a server provides a certificate and a hostname verifier is used if you need to customize the certificate validation process (re checking the host names).

I don't understand how you can use a hostname verifier if you have no trustManager ? Is it a valid combination ?

Sergey





--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-3-0-4-client-how-to-disable-CN-checking-tp5755938p5756289.html
Sent from the cxf-user mailing list archive at Nabble.com.



Reply via email to