Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property com.ibm.ws.jaxrs.client.disableCNCheck not honored #1459

Closed
andymc12 opened this issue Jan 4, 2018 · 0 comments
Closed

Property com.ibm.ws.jaxrs.client.disableCNCheck not honored #1459

andymc12 opened this issue Jan 4, 2018 · 0 comments

Comments

@andymc12
Copy link
Contributor

andymc12 commented Jan 4, 2018

When a jaxrsClient-2.0 (and presumably 2.1) user attempts to disable CN checks for outbound SSL-enabled JAX-RS client calls, the disableCNCheck may not be honored.

In testing a few scenarios, we find that if the disableCNCheck attribute on the webTarget element in server is set to "true", the CN check still occurs. If the user sets the property using a String ("true") when specifying a client property, the CN check also still occurs. If the user specifies a boolean, then the property is honored and the CN check does not occur:

clientBuilder.property("com.ibm.ws.jaxrs.client.disableCNCheck", true);//---succeeded
clientBuilder.property("com.ibm.ws.jaxrs.client.disableCNCheck", "true");//---failed

All of these approaches should work for disabling the CN check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants