camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Parkerson <>
Subject Using HTTPS in camel-http when remote side has self-signed cert
Date Thu, 15 Oct 2009 22:12:08 GMT
I'm trying to use Camel's HTTP component to send a POST request to a
web service using HTTPS. When I attempt to connect, I get the
following exception:

org.apache.camel.RuntimeCamelException: PKIX path building failed: unable to
find valid certification path to requested target
        at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(
        at org.apache.camel.impl.ProducerCache.send(
        at org.apache.camel.impl.DefaultProducerTemplate.send(
        at org.apache.camel.impl.DefaultProducerTemplate.sendBody(
        at org.apache.camel.impl.DefaultProducerTemplate.sendBody(
        at org.apache.camel.impl.DefaultProducerTemplate.requestBody(

I'm pretty sure that this is because the remote side is using a
self-signed certificate.

The question is: is there a good way to replace the behavior SSL
factory used by the Commons HTTPClient inside of the camel-http
component to make it accept self-signed certificates? I see that the
docs mention that you can provide a class that extends
CamelHttpClientConfigurer and configure the endpoint to use a
reference to that bean.



View raw message