Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
DSébastien1669215068
Contributor
Contributor

T_Rest on XRAY Cloud API - No trust Certificate found

Hello,

I'm trying to connect to the API of X-Ray Cloud with TOS DI 8 but it's not working.

First, i had a problem with ssl certification that i tried to fix by downloading the certificate from

https://xray.cloud.getxray.app.

With KeyStore Explorer, I have created an jks file that I used in to tSetKeyStore before the tRest but I still have a problem :

0695b00000Z30M3AAJ.png

0695b00000Z30TYAAZ.png

Can you help me to solve this problem?

Best regards.

S. De Witte

Labels (3)
8 Replies
Anonymous
Not applicable

Hello @De Witte Sébastien​ ,

Could you please try to import the ssl certificate to the JRE's cacerts file (in the studio machine) by the below command like :

keytool -import -file my.pem -alias MY_CA_Root -keystore "%JAVA_HOME%/jre/lib/security/cacerts" -storepass changeit

 

then re-try the job?

Best regards

Aiming

DSébastien1669215068
Contributor
Contributor
Author

Hello Achen,

 

I managed to import the ssl certificate but I still have the problem.

 

0695b00000Z39mAAAR.png 

0695b00000Z39mPAAR.pngBest regards.

 

S. De Witte

Anonymous
Not applicable

@De Witte Sébastien​ , Thanks for the feedback, please disable the tSetKeyStore component in the job and restart studio to retry?

DSébastien1669215068
Contributor
Contributor
Author

@Aiming Chen​ 

 

If i don't use the tSetKeyStore component, I have the following error :

0695b00000Z39vvAAB.png 

Best regards

 

S. De Witte

Anonymous
Not applicable

@De Witte Sébastien​ 

Did you ever import the ssl certification to the jks file that's created by KeyStore Explorer?

if no, please import it to try to use tSetKeyStore again?

 

if it still doesn't help, how about to use tSetKeyStore to point to the keystore file %JAVA_HOME%/jre/lib/security/cacerts ? (the Truststore passwd is changeit)

DSébastien1669215068
Contributor
Contributor
Author

Hello @Aiming Chen​ ,

 

I tried both solutions you proposed but i still have the problem.

 

Do yo know if it is possible to disable ssl certification control in Talend? On the same PC, with postman, I can access to the API if the SSL certificate validation is disable.

 

0695b00000Z3GhRAAV.png 

Best regards.

 

Sébastien De Witte

Anonymous
Not applicable

@De Witte Sébastien​ , to disable the ssl validation, you can add the below JVM parameters

-Dcom.sun.net.ssl.checkRevocation=false in job's RUN->Advanced settings

 

BTW:

I created a simple job with tREST+tLogRow to invoke the api "https://xray.cloud.getxray.app/api/v1/authenticate", but can't reproduce your issue in TOS 8

0695b00000Z3QtmAAF.png

DSébastien1669215068
Contributor
Contributor
Author

@Aiming Chen​ ,

 

Thanks to all your support.

 

I will continue to search a solution but I think it's due to my entreprise security.

Yesterday I tried the same Trest on my customer context and it's OK.

 

Best regards.

 

Sébastien De Witte