<?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: SSL error connecting to Salesforce from Talend ESB in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323924#M93693</link>
    <description>Thanks for the response Gusto2. 
&lt;BR /&gt;I didn't use the Open Studio (TOS?) to create the job. 
&lt;BR /&gt;Its written directly in Java using the Java DSL. 
&lt;BR /&gt;I never have SSL issues with SalesForce when running jobs like this directly in Apache CXF (This job runs fine in CXF 2.4.3, and later I will move it to 2.6.2) 
&lt;BR /&gt;The stubs were created using CXF 2.6.2 from the enterprise wsdl. 
&lt;BR /&gt;In CXF, I have a main method which tests the SOAP client with some calls directly to the methods. 
&lt;BR /&gt;The SSL handshake problems only appear when I try to run this as a bundle in Talend ESB 5.1.1. 
&lt;BR /&gt;For the bundle, I added a Camel RouteBuilder which simply creates a CXF REST service, and passes the queries to a Processor: 
&lt;BR /&gt;public class SfRouteBuilder extends RouteBuilder { 
&lt;BR /&gt; 
&lt;BR /&gt; private static final String CXF_RS_ENDPOINT_URI = "cxfrs://http://0.0.0.0:9111" + "/?resourceClasses=com.cn.dsa.sf.server.JobControlServiceImpl"; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; @Override 
&lt;BR /&gt; public void configure() throws Exception { 
&lt;BR /&gt; from(CXF_RS_ENDPOINT_URI) 
&lt;BR /&gt; .process( new SfProcessor() ); 
&lt;BR /&gt; } 
&lt;BR /&gt;}</description>
    <pubDate>Fri, 05 Oct 2012 17:30:45 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2012-10-05T17:30:45Z</dc:date>
    <item>
      <title>SSL error connecting to Salesforce from Talend ESB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323921#M93690</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;has anyone seen this msg when trying to get data from the SalesForce SOAP service inside Talend ESB?&lt;BR /&gt;Caused by: javax.net.ssl.SSLHandshakeException: SSLHandshakeException invoking &lt;A href="https://test.salesforce.com/services/Soap/c/26.0" target="_blank"&gt;https://test.salesforce.com/services/Soap/c/26.0&lt;/A&gt;: sun.security.validator.ValidatorException: No trusted certificate found&lt;BR /&gt;The ESB server is version 5.1.1: TESB_SE-V5.1.1&lt;BR /&gt;I'm using the current latest version of the SF API: 26.0&lt;BR /&gt;I also have a main method for testing in one class, that has no trouble connecting to SalesForce when I run it using Maven, outside of the ESB server.&lt;BR /&gt;full stack trace:&lt;BR /&gt;012-10-03 15:10:18,038 | WARN | tp2076228887-168 | PhaseInterceptorChain | ache.cxf.common.logging.LogUtils 405 | - - | Interceptor for {urn:enterprise.soap.sforce.com}SforceService#{urn:enterprise.soap.sforce.com}login has thrown exception, unwinding now&lt;BR /&gt;org.apache.cxf.interceptor.Fault: Could not send Messag&lt;/P&gt;
 &lt;BR /&gt;&lt;BR /&gt;To see the whole post, download it &lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009MckO" target="_blank"&gt;here&lt;/A&gt;</description>
      <pubDate>Sat, 16 Nov 2024 12:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323921#M93690</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error connecting to Salesforce from Talend ESB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323922#M93691</link>
      <description>Does anyone have an answer? 
&lt;BR /&gt;I need to get this working as a service by tomorrow.
&lt;BR /&gt;As a backup plan, I guess I am going to port this to Tomcat.
&lt;BR /&gt;But I would rather have it in the ESB.</description>
      <pubDate>Thu, 04 Oct 2012 16:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323922#M93691</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-10-04T16:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error connecting to Salesforce from Talend ESB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323923#M93692</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Does anyone have an answer? &lt;BR /&gt;I need to get this working as a service by tomorrow.&lt;BR /&gt;As a backup plan, I guess I am going to port this to Tomcat.&lt;BR /&gt;But I would rather have it in the ESB.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;It was a very long time since I've addressed Salesforce web services, so I don't remember exatcly.. but let' try - as far I remember you don't necessarily need mutual SSL to connect the salesforce. It can be 'server only'certificate for data confiddiality (please correct me if I'm wrong). Than maybe you could try import Salesforce's SSL certificate into your (Karaf's) keystore and trustCA store. 
&lt;BR /&gt;Now I see you invoke the service from a Mediation Route using TOS, I'm not sure what trustca store it uses 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Gabriel</description>
      <pubDate>Fri, 05 Oct 2012 10:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323923#M93692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-05T10:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error connecting to Salesforce from Talend ESB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323924#M93693</link>
      <description>Thanks for the response Gusto2. 
&lt;BR /&gt;I didn't use the Open Studio (TOS?) to create the job. 
&lt;BR /&gt;Its written directly in Java using the Java DSL. 
&lt;BR /&gt;I never have SSL issues with SalesForce when running jobs like this directly in Apache CXF (This job runs fine in CXF 2.4.3, and later I will move it to 2.6.2) 
&lt;BR /&gt;The stubs were created using CXF 2.6.2 from the enterprise wsdl. 
&lt;BR /&gt;In CXF, I have a main method which tests the SOAP client with some calls directly to the methods. 
&lt;BR /&gt;The SSL handshake problems only appear when I try to run this as a bundle in Talend ESB 5.1.1. 
&lt;BR /&gt;For the bundle, I added a Camel RouteBuilder which simply creates a CXF REST service, and passes the queries to a Processor: 
&lt;BR /&gt;public class SfRouteBuilder extends RouteBuilder { 
&lt;BR /&gt; 
&lt;BR /&gt; private static final String CXF_RS_ENDPOINT_URI = "cxfrs://http://0.0.0.0:9111" + "/?resourceClasses=com.cn.dsa.sf.server.JobControlServiceImpl"; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; @Override 
&lt;BR /&gt; public void configure() throws Exception { 
&lt;BR /&gt; from(CXF_RS_ENDPOINT_URI) 
&lt;BR /&gt; .process( new SfProcessor() ); 
&lt;BR /&gt; } 
&lt;BR /&gt;}</description>
      <pubDate>Fri, 05 Oct 2012 17:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323924#M93693</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-10-05T17:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error connecting to Salesforce from Talend ESB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323925#M93694</link>
      <description>Re-wrote this to run in TomEE.  No SSL problems at all.</description>
      <pubDate>Thu, 15 Nov 2012 20:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323925#M93694</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-11-15T20:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error connecting to Salesforce from Talend ESB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323926#M93695</link>
      <description>Solution: comment out all content from container\etc\org.apache.cxf.http.conduits-common.cfg 
&lt;BR /&gt;The sample keystore we deliver only contains a self signed certificate for usable for our samples. For all other kind of HTTPS connections you of course need the corresponding certificates. Especially for public servers, whose certificate is derived from some "official" root certificate using the default keystore which comes with the JRE is the better way as this keystore already containes all necessary root certificates. If you don't specify a keystore in your conduit configuration this is exactly the keystore that is taken.</description>
      <pubDate>Mon, 19 Nov 2012 08:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323926#M93695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-19T08:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error connecting to Salesforce from Talend ESB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323927#M93696</link>
      <description>In addition to what Alexey posted: 
&lt;BR /&gt;You might also simply remove the org.apache.cxf.http.conduits-common.cfg the conduits configuration file. Then the JRE keystore will be used by default fo all HTTPS endpoints or restrict the validity of the configuration to localhost endpoints by setting the url property to 
&lt;PRE&gt;url = https\://localhost&lt;/PRE&gt; 
&lt;BR /&gt;So the samples still work at least id you are running everything on localhost and certificates of public servers are validated against the JRE truststore. I also created a Jira issue to restrict the scope of the conduits file by default, see 
&lt;A href="https://jira.talendforge.org/browse/TESB-7621" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TESB-7621&lt;/A&gt; . 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Zsolt</description>
      <pubDate>Mon, 19 Nov 2012 11:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323927#M93696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-19T11:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error connecting to Salesforce from Talend ESB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323928#M93697</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;In addition to what Alexey posted:&lt;BR /&gt;You might restrict the validity of the configuration to localhost endpoints by setting the url property to &lt;PRE&gt;url = https\://localhost&lt;/PRE&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Zsolt&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Thank you Zsolt!
&lt;BR /&gt;The only change I made was changing the url property to:
&lt;BR /&gt;
&lt;PRE&gt;url = https\://localhost&lt;/PRE&gt;
&lt;BR /&gt;in org.apache.cxf.http.conduits-common.cfg
&lt;BR /&gt;This fixes the SSL problem.</description>
      <pubDate>Fri, 07 Dec 2012 15:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323928#M93697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-07T15:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error connecting to Salesforce from Talend ESB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323929#M93698</link>
      <description>Good to hear it worked. With 5.2.1 we fixed it in the conduits configuration. So with the latest version it should even work out of the box.&lt;BR /&gt;Zsolt</description>
      <pubDate>Fri, 07 Dec 2012 16:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SSL-error-connecting-to-Salesforce-from-Talend-ESB/m-p/2323929#M93698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-07T16:50:39Z</dc:date>
    </item>
  </channel>
</rss>

