We want to use a cMessageEndpoint to read a from a atom feed, but we need to login with client certificate
Last edited by Linge (2017-03-09 13:37:26)
The Keystore DI component do some System.setProperty()
In Camel, you can set those properties into a cConfig java code. The System properties will be declared when the Route starts and you should be able to test from Studio
On the long term when you will deploy this to Karaf, you have to centralize the keystore stuff for the Karaf JVM as this are all SYSTEM properties.
I guess (I never put this in practice yet) this is explained here . Or maybe defining the properties in etc/system.properties would be fine.
At least leaving System Properties inside Java Code deployed into a OSGi container is a bad idea
Aswer to post #2
Yes the tsetkeystore and thttprequest in a job works fine.
What we want to do is create a route that use camel component atom with the same certificate but dont know how to do it in a route.
There is no csetkeystore component so how do we include the certificate?
Last edited by Linge (2017-03-10 07:14:12)
i Copied the code from tsetkeystore to cconfig and modified it to this and it works!