Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tRest: SSLException: Received fatal alert: internal_error

Hello,

I'm trying to use a tRest on a very simple Job.

My URL is:

https://api.status.salesforce.com/v1/incidents/2420

And it works well in my brower.

 

On Talend, I get this error:

 

com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLException: Received fatal alert: internal_error

 

I replaced the URL with "https://google.com" and some other, it works well...

It looks like it's only with this specific url (https://api.status.salesforce.com).

 

My version of Talend: 6.4.1

 

Any ideas?

Thanks!

Labels (5)
11 Replies
Anonymous
Not applicable
Author

some questions:
- you're working with Windows?
- you're maybe having an extra JRE / JDK folder in your Talend installation folder? (i had one and it was nowhere in the preferences really linked, but somehow it used the keystore file from that installation - so be aware of that and look in your install folder if you find a keystore file under an extra java install!)
some first hints:
- you dont need the "sudo" command in front if you are working on windows
- as far as i know, you dont need admin rights to add certificates via keytool to your java keystore. i may be wrong, but this should be application specific. you can also try to add the .crt files to one JDK / JRE installation and then copy just the keystore file over to the other installation.
- there is also a component called tKeystore, which you can use with an extra Keystore file you just create for your extra .crt files outside of your java installation folder, for that option you should be able to do it with just normal user rights, no admin stuff involved here. but for that solution you must change the keytool commands as you will need to create an empty keystore file first and then add it (so you need to use another name for the keystore file and maybe even in another folder)

 

by the way... in my solution i also needed to add three .crt files, so this sounds somehow matching 0683p000009MACn.png

hope this helps!

Anonymous
Not applicable
Author

Thanks again for your great inputs.

- yes I'm on Windows (10)
- I re-looked inside my Talend installation folder, and no trace of a JRE/JDK. I also looked for some .jks, keytool.exe, etc., nothing.

I went for the tKeystore suggestion. I was able to run multiple command without admin rights (-genkey, -import).
So, I have a .jks with the 3 crt inside. I add it in the tKeystore, but it still fails as before.
I even tried to do another .jks with the original certificates from my service ( https://api.status.salesforce.com), but it's the same.

So, maybe I'm missing something because it's the first time I deep dive into this, but I start losing hope...

BUT, I made another discovery. I tried a simple tHttpRequest, and it works perfectly.
Is that normal? I mean, if it works with tHttpRequest, maybe the problem is in tRest component?

Meanwhile, I think I will try to work with tHttpRequest...