<?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: Can we avoid pinentry pop-up while using tGPGDecrypt component? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Can-we-avoid-pinentry-pop-up-while-using-tGPGDecrypt-component/m-p/2227635#M19183</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to achieve this by using tsystem component and batch file. It is able to decrypt without the password prompt.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2020 12:27:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-27T12:27:53Z</dc:date>
    <item>
      <title>Can we avoid pinentry pop-up while using tGPGDecrypt component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-we-avoid-pinentry-pop-up-while-using-tGPGDecrypt-component/m-p/2227632#M19180</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I am using Talend Open Studio for Data Integration version 7.2.1.&lt;/P&gt; 
&lt;P&gt;I have job that gets the gpg encrypted file from remote server, saves to local system, decrypts the file using tGPGDecrypt component, this works fine with decrypted file saved to local system. However, I see a passphrase pop-up during decryption every time I run the job even though I have the passphrase field filled-in with the value.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pinentry.JPG" style="width: 377px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6up.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155970iC92580A939FA665E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6up.jpg" alt="0683p000009M6up.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The tGPGDecrypt component Basic settings screenshot is attached:&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="component Setting.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6uu.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139515i19C1EE8930DF5A48/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6uu.jpg" alt="0683p000009M6uu.jpg" /&gt;&lt;/span&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;Is there a way we can avoid pin-entry passphrase pop-up? This would be a show stopper if we plan to automate this job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Installations used&lt;/STRONG&gt;:&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;Talend Open Studio for Data Integration version 7.2.1.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;GnuPG for Windows, version 2.2.17&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I appreciate your support.&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:47:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-we-avoid-pinentry-pop-up-while-using-tGPGDecrypt-component/m-p/2227632#M19180</guid>
      <dc:creator>jp2019_talend</dc:creator>
      <dc:date>2024-11-16T04:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can we avoid pinentry pop-up while using tGPGDecrypt component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-we-avoid-pinentry-pop-up-while-using-tGPGDecrypt-component/m-p/2227633#M19181</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Could you please create a work item jira issue with your requirement on talend bug tracker?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 08:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-we-avoid-pinentry-pop-up-while-using-tGPGDecrypt-component/m-p/2227633#M19181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-23T08:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can we avoid pinentry pop-up while using tGPGDecrypt component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-we-avoid-pinentry-pop-up-while-using-tGPGDecrypt-component/m-p/2227634#M19182</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Facing the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When hard-coding the passphrase or passing via context variable, the pop-up still appears.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate if you are aware of any solution.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 14:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-we-avoid-pinentry-pop-up-while-using-tGPGDecrypt-component/m-p/2227634#M19182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-18T14:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can we avoid pinentry pop-up while using tGPGDecrypt component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-we-avoid-pinentry-pop-up-while-using-tGPGDecrypt-component/m-p/2227635#M19183</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to achieve this by using tsystem component and batch file. It is able to decrypt without the password prompt.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 12:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-we-avoid-pinentry-pop-up-while-using-tGPGDecrypt-component/m-p/2227635#M19183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-27T12:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can we avoid pinentry pop-up while using tGPGDecrypt component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-we-avoid-pinentry-pop-up-while-using-tGPGDecrypt-component/m-p/2227636#M19184</link>
      <description>&lt;P&gt;Realize this is a year old, but this was the post that showed up in my search for answers and gave me the clues to make something work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem is that we keep having the password requested of us when we try to use the decrypt component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SHORT ANSWER: mahadev has the right of using the tsystem, but doing a batch file leave a passphrase in the clear, which isn't ideal. You CAN do it, but I don't think you SHOULD do it this way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;****A note here Talend should fix this. I found adding the --pinentry-mode loopback solves the problem. Guessing this would be just adding this to the code on the backside. Please and thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LONG ANSWER:&lt;/P&gt;&lt;P&gt;This works as best it can with something that should work out of the box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step One: Use tsystem component in a Pre-job setup or a subjob prior to tgpgdecrypt component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that when you run a test file with the same encryption, the loopback mode stays active for a limited amount of time and so you can then run the tgpgdecrypt component and it will not prompt for passwords.&lt;/P&gt;&lt;P&gt;For the actual command line I used:&lt;/P&gt;&lt;P&gt;     "cmd /c gpg.exe --batch --yes --pinentry-mode loopback --decrypt --passphrase \""+ context.pw+"\" "+" C:/SFTP/test.pgp"&lt;/P&gt;&lt;P&gt;Set your home directory to where gpg.exe is installed.&lt;/P&gt;&lt;P&gt;This allows me to run multiple files in a filelist and iterate on those files decrypting everything at once. Notice that the pw is in a context variable. This allows me not to have a password sitting in the clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step Two: Set up the context variable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very easy to do. Make sure you use the password type instead of string. In the command line, you have to escape the passphrase with quotes so that it follows the formatting for the options of gpg.exe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step Three: Use tgpgdecrypt component as you think it would be used. You can set the password to your context variable as well, which is nice if you might need to use this for different encrypted files for prod/test/dev or whatever.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps someone to save a lot of time. Spent way to much effort figuring this out.&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>Tue, 13 Apr 2021 15:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-we-avoid-pinentry-pop-up-while-using-tGPGDecrypt-component/m-p/2227636#M19184</guid>
      <dc:creator>Fish3</dc:creator>
      <dc:date>2021-04-13T15:52:52Z</dc:date>
    </item>
  </channel>
</rss>

