camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siano, Stephan" <>
Subject RE: hostname in certificate didn't match
Date Tue, 03 Nov 2015 09:36:12 GMT

However you should NEVER do this with a productive scenario as this setting will allow Man-in-the-middle
attacks to your HTTPS communication.

The root cause for the issue is that the hostname in the server certificate does not match
the URL you are calling (from the error message I would guess that the certificate contains
a hostname and you use an IP address). You should try to use the hostname in the URL, then
this issue should go away even when using a proper hostname verifier.

Best regards

-----Original Message-----
From: ramnar [] 
Sent: Dienstag, 3. November 2015 10:11
Subject: Re: hostname in certificate didn't match

Use the http component to allow all hosts like the following
httpcomponent.setX509HostnameVerifier(new AllowAllHostnameVerifier());

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message