You are not logged in.

Unanswered posts



Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at https://community.talend.com/. We look forward to hearing from you there!



#1 2017-03-09 13:31:37

Linge
Member
14 posts

Linge said:

[resolved] Clent cert in camel

We want to use a cMessageEndpoint to read a from a atom feed, but we need to login with client certificate



i use atom:https://server/feed (atom component in dependencie) but need to provide our cert like you do with a tsetkeystore combined with thttprequest in a DI-job.
/Paul
mini_blob_20170309-0434.png
mini_blob_20170309-0436.png

Last edited by Linge (2017-03-09 13:37:26)

Offline

#2 2017-03-10 04:01:54

xdshi
Talend Team


xdshi said:

Re: [resolved] Clent cert in camel

Hi,
Are you able to successfully import the certificate by using tsetkeystore component( local TrustStore and KeyStore with the password )?
Best regards
Sabrina


What we can do is to make sure that Talend will be your best choice!

Offline

#3 2017-03-10 07:04:40

vharcq
Member
8 posts

vharcq said:

Re: [resolved] Clent cert in camel

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

Offline

#4 2017-03-10 07:09:01

Linge
Member
14 posts

Linge said:

Re: [resolved] Clent cert in camel

Aswer to post #2
Hi
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?
/Paul

Last edited by Linge (2017-03-10 07:14:12)

Offline

#5 2017-03-15 12:14:21

Linge
Member
14 posts

Linge said:

Re: [resolved] Clent cert in camel

Tanks vharq
i Copied the code from tsetkeystore to cconfig and modified it to this and it works!
System.setProperty("javax.net.ssl.trustStore","D:/path/truststore.jks");
System.setProperty("javax.net.ssl.trustStoreType", "JKS");
System.setProperty("javax.net.ssl.trustStorePassword","xxxx");
System.setProperty("javax.net.ssl.keyStore","D:/path/keystore.p12");
System.setProperty("javax.net.ssl.keyStoreType", "PKCS12");
System.setProperty("javax.net.ssl.keyStorePassword","xxxx");
/Paul

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy