plain HTTPS server...
On 20/04/15 15:18, Sergey Beryozkin wrote:
So - please do ClientBuilder.build(), set a verifier only,
and test (we thought you probably have a 'plain' HTTP server running
locally). If it still does not work - please provide a maven based project

Sergey

On 20/04/15 15:10, Sergey Beryozkin wrote:
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.





--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to