cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gma...@apache.org
Subject svn commit: r1368471 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
Date Thu, 02 Aug 2012 13:41:35 GMT
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;
                 }



Mime
View raw message