SSL certifcate in camel-http

Posted on

We want to redirect the request from client to service provider that provides the service as https protocol.
So, how to configure SSL for client in camel route using camel-http, also how to skip hostname validation in the url

our camel code looks like this:
context.xml

and from java file we set the header:

newURL = "https://providerip/operationName/?bridgeEndpoint=true&throwExceptionOnFailure=false&httpClient.cookiePolicy=ignoreCookies";

exchange.getIn().setHeader(Exchange.HTTP_URL, newURL);

Responses