camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbkumar88 <rbkuma...@gmail.com>
Subject javax.net.ssl.SSLException: hostname in certificate didn't match
Date Fri, 18 Jul 2014 18:48:08 GMT
Hi,

I am using Apache Camel 2.13.2 and httpclient 4.3.3

Even if I configure the AllowAllHostNameVerifier as follows.

<bean id="hostnmverifier"
class="org.apache.http.conn.ssl.AllowAllHostnameVerifier" />

<to
uri="https4://?.?.?.?/B2BGateway12/service/XMLSelect1?x509HostnameVerifier=hostnmverifier"
/>

I am getting the following exception
javax.net.ssl.SSLException: hostname in certificate didn't match:
<?.?.?.103> != <?.?.?.com>
	at
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:231)
	at
org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify(BrowserCompatHostnameVerifier.java:54)
	at
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:152)
	at
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:133)
	at
org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:286)
	at
org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:276)
	at
org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:254)
	at
org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:123)
	at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)




--
View this message in context: http://camel.465427.n5.nabble.com/javax-net-ssl-SSLException-hostname-in-certificate-didn-t-match-tp5754018.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message