I have updated my route as follows, 

   <route id="API">
        <from uri="direct:inter2" />

<sslContextParameters id="Mysslcontext">
    <keyManagers keyPassword="keyPassword">
      <keyStore resource="/home/key.jks" password="keyStorePassword" />
</keyManagers>
  </sslContextParameters>

<bean beanType="org.apache.camel.component.http4.HttpComponent"
method="createEndpoint">
<property name="sslContextParameters" ref="Mysslcontext" />
</bean>

<setHeader headerName="CamelHttpMethod">
        <constant>GET</constant>
    </setHeader>

<to uri="https4://somedomain.com/tenants" />

I get a different error now, 

java.net.URISyntaxException: Illegal character in path at index 0:
org.apache.camel.impl.DefaultComponent.createEndpoint(java.lang.String)
throws java.lang.Exception]. Exchange[Message:
<CamelData><Requestdata/><Provider/><ClientID/></CamelData>: 

For some reason the input XML message is being printed as URI instead of
taking it from the <to uri>

Can you please let me know if am on right track in terms of implementation,
and how to resolve this error? 

Thanks, 
Anish



--
View this message in context: 
http://camel.465427.n5.nabble.com/PEM-File-for-Authentication-in-route-tp5771084p5771227.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to