Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The https URL hostname does not match the Common Name (CN) on the server.

972305Nov 3 2012
Hi,

I am getting the following error while trying to use https with our self-signed certificates.

javax.xml.ws.soap.SOAPFaultException: Marshalling Error: The https URL hostname does not match the Common Name (CN) on the server certificate. To disable this check (NOT recommended for production) set the CXF client TLS configuration property "disableCNCheck" to true.

The above error is the error I get, when I try to use the Web Services using https.

I have added the following lines in cxf.xml but it still doesn't seem to work correctly.

<http-conf:conduit name="*.http-conduit">
<!-- deactivate HTTPS url hostname verification (localhost, etc)
WARNING ! disableCNcheck=true should NOT be used in production -->
<http-conf:tlsClientParameters disableCNCheck="true" />

Kindly let me know on what would be the issue here?.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2012
Added on Nov 3 2012
0 comments
1,256 views