tSoap - TLS 1.2

One Star

tSoap - TLS 1.2

Hi all,
I have a bug when I call a webservice since the provider updated to TLS 1.2 protocol .
(It worked fine before)
I tried the web service with SOAP UI,It works after modification of soapui configuration file:
 -Dsoapui.https.protocols=TLSv1.2
Here is the trace :
ai 19, 2015 11:40:14 AM com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection post
SEVERE: SAAJ0009: Message send failed
Exception in component tSOAP_2
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Message send failed
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(Unknown Source)
at org.talend.soap.SOAPUtil.invokeSOAP(SOAPUtil.java:109)
Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Message send failed
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.post(Unknown Source)
... 5 more
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
... 6 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(Unknown Source)
... 14 more
CAUSE:

java jre 7
Any idea?
Moderator

Re: tSoap - TLS 1.2

Hi,
Do you want to define TLS protocol for tSoap component?
https://jira.talendforge.org/browse/TDI-32059
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: tSoap - TLS 1.2

Hello,
I found an easy solution, I added that property, on a tJava component (before tSoap component) :
System.setProperty("https.protocols", "TLSv1.2");
Regards,
Vinc
Moderator

Re: tSoap - TLS 1.2

Hi Vinc,
It's really nice of you to share your solution with us.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: tSoap - TLS 1.2

You're welcome Smiley Happy
Five Stars

Re: tSoap - TLS 1.2

Hello Everybody 
Service : Salesforce over Soap API 
When the service forced to make an authentification with tls 1.2 and has tls 1.0 already deactivated.
Then the service should work with tls 1.2 or ? 
Or do i have to obey sth. more maybe on the talend side and in which way talend used the tls 1.2 protocol. 
regards fireskyer