You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by gm...@apache.org on 2012/08/02 15:41:35 UTC
svn commit: r1368471 -
/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
Author: gmazza
Date: Thu Aug 2 13:41:34 2012
New Revision: 1368471
URL: http://svn.apache.org/viewvc?rev=1368471&view=rev
Log:
Better troubleshooting message with CN mismatch error
Modified:
cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java?rev=1368471&r1=1368470&r2=1368471&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java (original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java Thu Aug 2 13:41:34 2012
@@ -1212,8 +1212,9 @@ public abstract class HTTPConduit
if (e.getMessage() != null && e.getMessage().contains("HTTPS hostname wrong:")) {
throw new IOException("The https URL hostname does not match the "
+ "Common Name (CN) on the server certificate in the client's truststore. "
- + "To disable this check (NOT recommended for production) set the CXF "
- + "client TLS configuration property \"disableCNCheck\" to true.");
+ + "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.");
} else {
throw e;
}