GnuPG 2.2.8 -- Trouble Decrypting using PowerShell script

2018-10-22 Thread Vijay . Akunuri
Hi Team, We are lately running into some issues with the decrypting file using 
PGP.

In command prompt we are using  "& gpg -d --batch --passphrase comment 
C:\projects\successfactors\SuccessionTalentPool\incoming_files\Succession_Talent_Pool_Tableau_Report.csv.pgp
 "
[cid:image001.png@01D46A07.8310AB10]

We are passing the passphrase but when we run the script the a window pops up 
to enter the passphrase manually like this below.

[cid:image002.png@01D46A07.8310AB10]

On local if enter the passphase in above prompted window then it is able to 
decrypt the file. But on servers we can do that manually and that is the reason 
we are passing it to command prompt.

Kindly help us in resolving this issue. Let me know if you need more 
information.

[cid:image001.png@01D40941.ED729260]

Venkata Vijaya Mohan Akunuri
TG Sr. Database Developer- BI Data Integration
Kiewit Technology Group
12720 I St, Omaha, NE 68137
402-938-4358 763-227-3224 cell
[View-my-LinkedIn-profile-image-3-300x140]

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GnuPG 2.2.8 -- Trouble Decrypting using PowerShell script

2018-10-24 Thread Andre Heinecke
Hi,

just as a bit of advertising. There is professional support available under 
gpg4win-professio...@gpg4win.org

I'm answering your problem inline below:

On Monday, October 22, 2018 6:03:46 PM CEST Vijay. Akunuri wrote:
> In command prompt we are using  "& gpg -d --batch --passphrase comment C:
\projects\successfactors\SuccessionTalentPool\incoming_files
\Succession_Talent_Pool_Tableau_Report.csv.pgp "
>
> We are passing the passphrase but when we run the script the a window pops 
up to enter the passphrase manually like this below.

Your command is missing "--pinentry-mode loopback"
See: https://wiki.gnupg.org/TroubleShooting#Passphrase_on_the_command_line

E.g.:
"gpg --pinentry-mode loopback -d --batch --passphrase comment C:\projects
\successfactors\SuccessionTalentPool\incoming_files
\Succession_Talent_Pool_Tableau_Report.csv.pgp "

> On local if enter the passphase in above prompted window then it is able to 
> decrypt the file. But on servers we can do that manually and that is the
> reason we are passing it to command prompt.

As a scheduled job on a server you might also want to set an explicit homedir 
in your command. See:

https://wiki.gnupg.org/TroubleShooting#Windows_.
3E_8_and_Server_2012_Task_Scheduler_Problems

> Kindly help us in resolving this issue. Let me know if you need more
> information.

I'm working professionally for Gpg4win. So please consider a volunatry payment 
to Gpg4win or donation to GnuPG if this helped to solve your problem. :-)

Best Regards,
Andre Heinecke

-- 
Andre Heinecke |  ++49-541-335083-262  | http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

signature.asc
Description: This is a digitally signed message part.
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users