on("protocol is null");
}
PROTOCOLS.put(id, protocol);
}
}
Regards,
Christian
--
View this message in context:
http://old.nabble.com/Using-HTTPS-in-camel-http-when-remote-side-has-self-signed-cert-tp25916878p27694404.html
Sent from the Camel - Users mailing list archive at Nabble.com.
mplate.java:105)
>>> at
>>> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:121)
>>> at
>>> org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:201)
>>> [etc.]
>>>
>>> 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.
>>>
>>> Ideas?
>>>
>>> --sgp
>>> cf. http://www.smerpology.org/
>>>
>>
>>
>>
>
>
--
View this message in context:
http://old.nabble.com/Using-HTTPS-in-camel-http-when-remote-side-has-self-signed-cert-tp25916878p27689918.html
Sent from the Camel - Users mailing list archive at Nabble.com.
27;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-si
Hi,
You can do some customer modification on the HttpClient through the
CamelHttpClientConfigurer interface.
public class AcceptSelfSignCertHttpClientConfigure implements
HttpClientConfigurer {
public void configureHttpClient(HttpClient client) {
// register the customer SSLFact
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:
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed: