<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Solution: Send mails with Talend - TLS 1.0 and SSLHandshakeException in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376168#M138402</link>
    <description>&lt;P&gt;Hi @Xiaodi Shi​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we need to publish all the jobs again, after making this change? We have 100's of jobs running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to include this argument '&lt;B&gt;-Dmail.smtp.ssl.protocols=TLSv1.2&lt;/B&gt;' on the job server(Linux) and all the running jobs in Prod can take it up?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;</description>
    <pubDate>Thu, 10 Feb 2022 11:53:43 GMT</pubDate>
    <dc:creator>Raghuram_Puram</dc:creator>
    <dc:date>2022-02-10T11:53:43Z</dc:date>
    <item>
      <title>Solution: Send mails with Talend - TLS 1.0 and SSLHandshakeException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376166#M138400</link>
      <description>&lt;P&gt;&lt;B&gt;Hello!&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I have seen a lot of people over the internet struggling with the &lt;B&gt;tSendMail &lt;/B&gt;component Talend offers and in most cases it's always the same error/java exception.&lt;/P&gt;&lt;P&gt;&lt;B&gt;In this post, I'd like to share the way to fix this general Talend issue with all of you.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Issue/problem&lt;/B&gt;&lt;/P&gt;&lt;P&gt;It is not possible to send mails with the &lt;B&gt;tSendMail &lt;/B&gt;component provided by Talend. In most cases, the following exception pops up&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;The reason is simple&lt;/B&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;tSendMail component is sending mails using the TLS version 1.0&lt;/LI&gt;&lt;LI&gt;TlS 1.0 and TLS 1.1 is disabled by default in JDK 8 or 11&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;B&gt;Solution&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Before we start playing with the java.security file, here is the real way to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Four steps will be needed.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Update your mail.jar module&lt;OL&gt;&lt;LI&gt;&lt;A href="https://talend-update.talend.com/nexus/content/repositories/libraries/org/talend/libraries/mail-1.4.7/6.0.0/" alt="null" target="_blank"&gt;Find the correct version here (click)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Once downloaded, add it to your workspace und Talend\Workspace\Project\Libs&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;The mail 1.4.7.jar needs to be updated in Talend&lt;OL&gt;&lt;LI&gt;Go to view &amp;gt; other &amp;gt; modules &amp;gt; search for tSendMail&lt;/LI&gt;&lt;LI&gt;Click on the 3 dots next to the mail-1.4.jar module&lt;/LI&gt;&lt;LI&gt;Select your previously installed module File and click on Custom MVN url&lt;OL&gt;&lt;LI&gt;The custom url is: &lt;B&gt;mvn:org.talend.libraries/mail-1.4/1.4.7/jar&lt;/B&gt;&lt;/LI&gt;&lt;LI&gt;Click on &lt;B&gt;detect the module install status &lt;/B&gt;and then on OK&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;You now need to eventually add a default property to your job&lt;OL&gt;&lt;LI&gt;Go to windows &amp;gt; preferences &amp;gt; Talend &amp;gt; run/Debug &amp;gt; New &amp;gt; add the following argument&lt;OL&gt;&lt;LI&gt;&lt;B&gt;-Dmail.smtp.ssl.protocols=TLSv1.2&lt;/B&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Make sure you unchecked &lt;B&gt;use specific JVM arguments in all of your jobs.&lt;/B&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are a few screenshots to help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2kHpAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129555iF655699D3BD3DEA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2kHpAAJ.png" alt="0695b00000L2kHpAAJ.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2kI4AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147488iE4A51873E173EC32/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2kI4AAJ.png" alt="0695b00000L2kI4AAJ.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2kGxAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150614i61BD51F329D12B11/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2kGxAAJ.png" alt="0695b00000L2kGxAAJ.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2kIiAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146484iEC48A8D0454C7F37/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2kIiAAJ.png" alt="0695b00000L2kIiAAJ.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2kG6AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141905iD981DB186A36CD0A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2kG6AAJ.png" alt="0695b00000L2kG6AAJ.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376166#M138400</guid>
      <dc:creator>amba1</dc:creator>
      <dc:date>2024-11-15T23:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Solution: Send mails with Talend - TLS 1.0 and SSLHandshakeException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376167#M138401</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It is a very good job and thanks for sharing it with us on community.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 05:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376167#M138401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-02T05:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Solution: Send mails with Talend - TLS 1.0 and SSLHandshakeException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376168#M138402</link>
      <description>&lt;P&gt;Hi @Xiaodi Shi​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we need to publish all the jobs again, after making this change? We have 100's of jobs running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to include this argument '&lt;B&gt;-Dmail.smtp.ssl.protocols=TLSv1.2&lt;/B&gt;' on the job server(Linux) and all the running jobs in Prod can take it up?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 11:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376168#M138402</guid>
      <dc:creator>Raghuram_Puram</dc:creator>
      <dc:date>2022-02-10T11:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Solution: Send mails with Talend - TLS 1.0 and SSLHandshakeException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376169#M138403</link>
      <description>&lt;P&gt;You can include the argument in your .sh files.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 12:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376169#M138403</guid>
      <dc:creator>amba1</dc:creator>
      <dc:date>2022-02-10T12:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Solution: Send mails with Talend - TLS 1.0 and SSLHandshakeException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376170#M138404</link>
      <description>&lt;P&gt;Could you please help with understanding what are the .sh files and where can I locate them on the jobserver?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 12:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376170#M138404</guid>
      <dc:creator>Raghuram_Puram</dc:creator>
      <dc:date>2022-02-10T12:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Solution: Send mails with Talend - TLS 1.0 and SSLHandshakeException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376171#M138405</link>
      <description>&lt;P&gt;Well, you said that you were hosting the jobs on a Linux machine, right? Each job should have its own shell scripts (.sh) file, in which you can add various parameters.&lt;/P&gt;&lt;P&gt;Since I assume that you did not update your mail.jar component, you have two possibilities for your mails to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;U&gt;Solution:&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Method A&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Modifying the file java.security inside the JDK install directory:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Edit the file $JAVA_HOME/conf/security/java.security in a text editor.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Remove the entries&amp;nbsp;&lt;B&gt;TLSv1,&lt;/B&gt;&amp;nbsp;and&amp;nbsp;&lt;B&gt;TLSv1.1,&lt;/B&gt;&amp;nbsp;from the following line of that file:&lt;/LI&gt;&lt;LI&gt;jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES,&lt;/LI&gt;&lt;LI&gt;Restart the application&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;On Java 8, the java.security file is located in the following directory:&amp;nbsp;&lt;/P&gt;&lt;P&gt;$JAVA_HOME/jre/lib/security&lt;/P&gt;&lt;P&gt;&lt;B&gt;Method B &lt;/B&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Follow my original post.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep in mind that Method A is not the right way to do this. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, you could try just adding this parameter to your .sh file: -Dmail.smtp.ssl.protocols=TLSv1.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If none of the solutions above work, please create a new post with a detailed description of your jobs &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 15:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Solution-Send-mails-with-Talend-TLS-1-0-and/m-p/2376171#M138405</guid>
      <dc:creator>amba1</dc:creator>
      <dc:date>2022-02-10T15:56:54Z</dc:date>
    </item>
  </channel>
</rss>

