java.io.IOException: The https URL hostname does not match the Common Name (CN)

Solution Verified - Updated -

Issue

The following error appears in the logs:

java.io.IOException: The https URL hostname does not match the Common Name (CN) on the server certificate in the client's truststore. Make sure server certificate is correct, or to disable this check (NOT recommended for production) set the CXF client TLS configuration property "disableCNCheck" to true.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
  • JBoss WS CXF stack

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.