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:37:18 UTC
svn commit: r1368470 -
/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
Author: gmazza
Date: Thu Aug 2 13:37:18 2012
New Revision: 1368470
URL: http://svn.apache.org/viewvc?rev=1368470&view=rev
Log:
Clarified error message in case of CN mismatches between server cert and HTTPS URL address
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=1368470&r1=1368469&r2=1368470&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:37:18 2012
@@ -1211,9 +1211,9 @@ public abstract class HTTPConduit
} catch (IOException e) {
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. To disable this check "
- + "(NOT recommended for production) set the CXF client TLS configuration "
- + "property \"disableCNCheck\" to true.");
+ + "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.");
} else {
throw e;
}