<?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 tRest configuration for a mTLS connection in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRest-configuration-for-a-mTLS-connection/m-p/2527087#M147871</link>
    <description>&lt;P&gt;I am trying to set up a connection to a restful service using an NPE cert.&amp;nbsp; I don't see many options in the tRest component.&lt;BR /&gt;&lt;BR /&gt;How do I tell the connection to use my cert?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Aug 2025 18:41:17 GMT</pubDate>
    <dc:creator>pthomas</dc:creator>
    <dc:date>2025-08-12T18:41:17Z</dc:date>
    <item>
      <title>tRest configuration for a mTLS connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-configuration-for-a-mTLS-connection/m-p/2527087#M147871</link>
      <description>&lt;P&gt;I am trying to set up a connection to a restful service using an NPE cert.&amp;nbsp; I don't see many options in the tRest component.&lt;BR /&gt;&lt;BR /&gt;How do I tell the connection to use my cert?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 18:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-configuration-for-a-mTLS-connection/m-p/2527087#M147871</guid>
      <dc:creator>pthomas</dc:creator>
      <dc:date>2025-08-12T18:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: tRest configuration for a mTLS connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-configuration-for-a-mTLS-connection/m-p/2527088#M147872</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/321951"&gt;@pthomas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ChatGPT's response, I think it should help you.&lt;/P&gt;&lt;P&gt;Got it — you’re using Talend (the tRest component) and need to connect to a RESTful service that requires an NPE certificate (I’m guessing you mean an NPE-issued SSL client certificate, like from a government or partner service).&lt;/P&gt;&lt;P&gt;tRest itself doesn’t have a big GUI for certificate handling — it mostly passes HTTP calls to the underlying Java HttpClient or CXF client — so the certificate setup has to happen at the Java keystore level before the component runs.&lt;/P&gt;&lt;P&gt;Here’s how you can set it up:&lt;/P&gt;&lt;P&gt;1. Convert your certificate to a Java keystore&lt;BR /&gt;If you have your certificate in .pfx or .p12 format:&lt;/P&gt;&lt;P&gt;bash&lt;BR /&gt;Copier&lt;BR /&gt;Modifier&lt;BR /&gt;keytool -importkeystore \&lt;BR /&gt;-srckeystore mycert.p12 \&lt;BR /&gt;-srcstoretype PKCS12 \&lt;BR /&gt;-destkeystore mykeystore.jks \&lt;BR /&gt;-deststoretype JKS&lt;BR /&gt;You’ll be prompted for a password — remember it, you’ll use it in Talend.&lt;/P&gt;&lt;P&gt;2. Tell Talend (Java) to use your cert&lt;BR /&gt;In Talend Studio:&lt;/P&gt;&lt;P&gt;Go to Run → Advanced settings for your job.&lt;/P&gt;&lt;P&gt;In the JVM Arguments, add:&lt;/P&gt;&lt;P&gt;text&lt;BR /&gt;Copier&lt;BR /&gt;Modifier&lt;BR /&gt;-Djavax.net.ssl.keyStore="C:/path/to/mykeystore.jks"&lt;BR /&gt;-Djavax.net.ssl.keyStorePassword=yourpassword&lt;BR /&gt;-Djavax.net.ssl.trustStore="C:/path/to/mytruststore.jks"&lt;BR /&gt;-Djavax.net.ssl.trustStorePassword=trustpassword&lt;BR /&gt;The truststore contains the CA that issued the server’s certificate.&lt;BR /&gt;If you don’t have one, you can generate it with keytool -import from their public certificate.&lt;/P&gt;&lt;P&gt;3. Use tRest normally&lt;BR /&gt;Now, when tRest makes the HTTPS request, Java’s SSL layer will automatically present your client certificate and validate the server cert.&lt;/P&gt;&lt;P&gt;4. Alternative: tRestClient&lt;BR /&gt;If you need more control over authentication headers, TLS versions, or timeouts, tRestClient (Talend ESB components) can sometimes make certificate handling easier — especially if you use a CXF configuration file (cxf.xml) that specifies your key and trust store.&lt;BR /&gt;But the keystore/truststore system properties still work there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Reagrds&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 19:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-configuration-for-a-mTLS-connection/m-p/2527088#M147872</guid>
      <dc:creator>Dave_Simo</dc:creator>
      <dc:date>2025-08-12T19:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: tRest configuration for a mTLS connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-configuration-for-a-mTLS-connection/m-p/2527230#M147874</link>
      <description>&lt;P&gt;I can use curl in terminal with the cert info.&amp;nbsp; I'm wondering if I can use a tSystem with that curl.&lt;BR /&gt;&lt;BR /&gt;I can access the certs but not modify them.&lt;BR /&gt;&lt;BR /&gt;I'm surprised Talend doesn't have a component to hit a restful service with an NPE cert.&amp;nbsp; I was hoping in the advanced tab of tRest there were examples of how the cert info could be added there.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;cert:location\file.cer&lt;BR /&gt;key:location\file.key&lt;BR /&gt;cacert:location\file.crt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 14:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-configuration-for-a-mTLS-connection/m-p/2527230#M147874</guid>
      <dc:creator>pthomas</dc:creator>
      <dc:date>2025-08-13T14:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: tRest configuration for a mTLS connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-configuration-for-a-mTLS-connection/m-p/2527246#M147875</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/321951"&gt;@pthomas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test configuration below, I had managed to access a web service which requested a certificate using a tKeystore at the beginning and I was using a tRestClient and not a tRest.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Talend-Studio-How-to-set-a-truststore-for-an-SSL-TLS-connection/ta-p/2151753" target="_blank"&gt;https://community.qlik.com/t5/Official-Support-Articles/Talend-Studio-How-to-set-a-truststore-for-an-SSL-TLS-connection/ta-p/2151753&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 16:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-configuration-for-a-mTLS-connection/m-p/2527246#M147875</guid>
      <dc:creator>Dave_Simo</dc:creator>
      <dc:date>2025-08-13T16:02:09Z</dc:date>
    </item>
  </channel>
</rss>

