aspose file tools*
The moose likes Web Services and the fly likes Marshalling Error: The https URL hostname does not match the Common Name (CN) on the server certific Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Marshalling Error: The https URL hostname does not match the Common Name (CN) on the server certific" Watch "Marshalling Error: The https URL hostname does not match the Common Name (CN) on the server certific" New topic
Author

Marshalling Error: The https URL hostname does not match the Common Name (CN) on the server certific

Parthasarathy Krishnaswamy
Greenhorn

Joined: Nov 03, 2012
Posts: 1
Hi,

I am getting the following error

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.

when I try to connect and use the Web Services on self-signed certificates.

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

<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" />
The cxf.xml file is placed under WEB-INF/classes/CxfService.

Kindly let me know on what would be the issue?.

Thanks.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Marshalling Error: The https URL hostname does not match the Common Name (CN) on the server certific