<?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: 2 way ssl per data service in talend runtime in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/2-way-ssl-per-data-service-in-talend-runtime/m-p/2228446#M19717</link>
    <description>&lt;P&gt;Hi Dietmar,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your aswer, i had already seen this 2 links and for me the solution described in this links allows to set the ssl connection for all the data services developed and deployed in Talend runtime (Karaf).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my&amp;nbsp;&lt;SPAN&gt;org.ops4j.pax.web.cfg file configuration :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;#org.osgi.service.http.port=8181  ==&amp;gt; disable the http port

org.osgi.service.http.port.secure=9001
org.osgi.service.http.secure.enabled=true
org.ops4j.pax.web.ssl.keystore=./etc/keystores/keystore.jks
org.ops4j.pax.web.ssl.password=password
org.ops4j.pax.web.ssl.keypassword=password
#org.ops4j.pax.web.ssl.clientauthwanted=false
org.ops4j.pax.web.ssl.clientauthneeded=true&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let suppose (this is my case) that i develop 2 talend Rest Api :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - The first one is destinated to be called by an internal application (SAP for example), so we don't need de to set a strong security (Https + basic athentification will suffice and the client doesn't need to provide any certificate)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - The second one will be called only from an external application (Salesforce as it is in the cloud) and in this case, we have to put a strong security (2 way ssl)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i modify the&amp;nbsp;&lt;SPAN&gt;org.ops4j.pax.web.cfg as described above and restard the runtime (Karaf):&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- The second rest api will work as expected.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- The first rest api wich works only with basic authentification will not word and ask for a certificate to be verified ! may be the configuration set in&amp;nbsp;&amp;nbsp;org.ops4j.pax.web.cfg impact all talend data services ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did i miss some settings, so my first api will work as expected ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2019 13:07:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-04T13:07:00Z</dc:date>
    <item>
      <title>2 way ssl per data service in talend runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/2-way-ssl-per-data-service-in-talend-runtime/m-p/2228444#M19715</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have developped a simple rest api using trestrequest et trestresponse components and i deployed it successfully to work with https and basic authentification after doing some modication in&amp;nbsp;org.ops4j.pax.web.cfg&amp;nbsp;and&amp;nbsp;user.properties files.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For a new need, i have to develop a new rest api wich will be called by another api (amazon api getway) by using the https and 2 way ssl athentification,&amp;nbsp;I've been looking at chapter&amp;nbsp;&lt;A href="https://help.talend.com/search/all?query=HTTP+Conduit+OSGi+Configuration+Parameters&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=HTTP+Conduit+OSGi+Configuration+Parameters&amp;amp;content-lang=en&lt;/A&gt;, but I think that this configuration is used to allow my rest api to access 3rd party web services over SSL, however what i need is to allow the external api to acces to my talend api over 2 way ssl, so my question is&amp;nbsp; :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;- is it possible to set the security in talend runtime per web service ? for example let my first api works with only https and&amp;nbsp; basic athentification, create a new api wich works with https and 2 way ssl, create another wich works with https only ...etc.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you in advance for your answers (andi sorry for my bad english).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/2-way-ssl-per-data-service-in-talend-runtime/m-p/2228444#M19715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: 2 way ssl per data service in talend runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/2-way-ssl-per-data-service-in-talend-runtime/m-p/2228445#M19716</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can do this with the Talend Runtime (Apache Karaf) configuration for the Service (HTTPS) port.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see: &lt;A href="https://help.talend.com/reader/T7hdMN16K129AtayaQluAA/5OIrBL0jqfkI7Z_2~MY1JQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/T7hdMN16K129AtayaQluAA/5OIrBL0jqfkI7Z_2~MY1JQ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also this one can help even so for an older version of Apache Karaf but still close to the things you need to do:&amp;nbsp;&lt;A href="http://blog.nanthrax.net/?p=316" target="_blank" rel="nofollow noopener noreferrer"&gt;http://blog.nanthrax.net/?p=316&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dietmar&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 10:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/2-way-ssl-per-data-service-in-talend-runtime/m-p/2228445#M19716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-04T10:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: 2 way ssl per data service in talend runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/2-way-ssl-per-data-service-in-talend-runtime/m-p/2228446#M19717</link>
      <description>&lt;P&gt;Hi Dietmar,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your aswer, i had already seen this 2 links and for me the solution described in this links allows to set the ssl connection for all the data services developed and deployed in Talend runtime (Karaf).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my&amp;nbsp;&lt;SPAN&gt;org.ops4j.pax.web.cfg file configuration :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;#org.osgi.service.http.port=8181  ==&amp;gt; disable the http port

org.osgi.service.http.port.secure=9001
org.osgi.service.http.secure.enabled=true
org.ops4j.pax.web.ssl.keystore=./etc/keystores/keystore.jks
org.ops4j.pax.web.ssl.password=password
org.ops4j.pax.web.ssl.keypassword=password
#org.ops4j.pax.web.ssl.clientauthwanted=false
org.ops4j.pax.web.ssl.clientauthneeded=true&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let suppose (this is my case) that i develop 2 talend Rest Api :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - The first one is destinated to be called by an internal application (SAP for example), so we don't need de to set a strong security (Https + basic athentification will suffice and the client doesn't need to provide any certificate)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - The second one will be called only from an external application (Salesforce as it is in the cloud) and in this case, we have to put a strong security (2 way ssl)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i modify the&amp;nbsp;&lt;SPAN&gt;org.ops4j.pax.web.cfg as described above and restard the runtime (Karaf):&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- The second rest api will work as expected.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- The first rest api wich works only with basic authentification will not word and ask for a certificate to be verified ! may be the configuration set in&amp;nbsp;&amp;nbsp;org.ops4j.pax.web.cfg impact all talend data services ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did i miss some settings, so my first api will work as expected ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 13:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/2-way-ssl-per-data-service-in-talend-runtime/m-p/2228446#M19717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-04T13:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: 2 way ssl per data service in talend runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/2-way-ssl-per-data-service-in-talend-runtime/m-p/2228447#M19718</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;well, if you really need different settings - and you mentioned it already in your first post -&amp;nbsp; on our HTTPS port then I would say the only easy way to do this is via two seperate containers. One for the basic auth + SSL and one for the 2 way SSL. Theoretically there might be an option with the jetty config where you can add a new HTTPS Port (addConnector) (see:&amp;nbsp;&lt;A href="http://blog.nanthrax.net/?p=352" target="_blank" rel="nofollow noopener noreferrer"&gt;http://blog.nanthrax.net/?p=352&lt;/A&gt;) but I would say the dependencies between pax web and your lower level jetty config are not easy to handle and by this I would not recommend to go this way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can run the container multiple times on the same machine and we provide some scripts&amp;nbsp; to configure the second container to not have any port conflicts&amp;nbsp; see:&amp;nbsp;&lt;A href="https://help.talend.com/reader/T7hdMN16K129AtayaQluAA/hP9UySpDSk4xcwybQm5s2w" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/T7hdMN16K129AtayaQluAA/hP9UySpDSk4xcwybQm5s2w&lt;/A&gt;&amp;nbsp; it is in my mind the only easy enough option to do what you like to do.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;Dietmar&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 14:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/2-way-ssl-per-data-service-in-talend-runtime/m-p/2228447#M19718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-04T14:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: 2 way ssl per data service in talend runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/2-way-ssl-per-data-service-in-talend-runtime/m-p/2228448#M19719</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for all your suggestions, i really appreciate your help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The two solutions can resolve my issue and i prefer the jetty.xml configuration to have only one container with several connectors but i'm not in this step because the tow solution don't work for me, here is what iam doing :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Solution 1&lt;/STRONG&gt; == &amp;gt;&amp;nbsp;&lt;SPAN&gt;Enabling client authentication for SSL by modifying the&amp;nbsp;org.ops4j.pax.web.cfg file :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I tried to reproduce exactly the example given in the talend help&amp;nbsp;&lt;A href="https://help.talend.com/reader/yovCMqvJzyaSSSIdrlB4FQ/HlVXm6zYbAL14q4Lq84a1w" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/yovCMqvJzyaSSSIdrlB4FQ/HlVXm6zYbAL14q4Lq84a1w&lt;/A&gt;&amp;nbsp;, when i call my rest service from Chrome, Firefox, CURL or Postman after adding the client certificate it always show me "BAD CERTIFICATE", i added our certificate Authority and restarted karaf, always the same error message "BAD CERTIFICATE"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As this solution did not work for me, i tried the &lt;STRONG&gt;second solution&lt;/STRONG&gt; by modyfiying the jetty.xml file and tested the one way ssl for example as described here : &lt;A href="https://help.talend.com/reader/yovCMqvJzyaSSSIdrlB4FQ/xWGGon_HvMs8tUG8RhStDQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/yovCMqvJzyaSSSIdrlB4FQ/xWGGon_HvMs8tUG8RhStDQ&lt;/A&gt;&amp;nbsp;, after restarting karaf i'm not able to call the rest service.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;here is my talend rest service :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8ZL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140174i324C96DF1719EED9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8ZL.png" alt="0683p000009M8ZL.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;My first try by modifying the&amp;nbsp;org.ops4j.pax.web.cfg and restarting karaf:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture3.PNG" style="width: 710px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8ZQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156684iD2E963371DFAB750/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8ZQ.png" alt="0683p000009M8ZQ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;My second try by modifying the jetty.xml file and adding my connector and restarting karaf:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture4.PNG" style="width: 657px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8ZV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136207iC0B5445ABA2B39A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8ZV.png" alt="0683p000009M8ZV.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture5.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8Za.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142447iE00D3C0C5AB8D74B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8Za.png" alt="0683p000009M8Za.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Iam using &lt;STRONG&gt;TOS_ESB-20190620_1446-V7.2.1&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank for your help in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 13:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/2-way-ssl-per-data-service-in-talend-runtime/m-p/2228448#M19719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-14T13:17:39Z</dc:date>
    </item>
  </channel>
</rss>

