On 09/04/2013 01:54 PM, Diaz, John, A wrote:
> Mainframe calls .bat file that calls C# application that calls second .bat 
> file to call GnuPG to decrypt a file. Once decrypted, other stuff happens, 
> e-mails are sent, blah, blah, blah.
> 
> Here's the issue: When the mainframe calls the .bat file to start the 
> process, the decryption returns:
> Decrypt error :gpg: armor header: Version: GnuPG v1.4.9 (AIX)
> gpg: public key is 07F7097A
> gpg: encrypted with ELG-E key, ID 07F7097A
> gpg: decryption failed: secret key not available
> 
> if I list the keys on the server that this is running I see the key listed.
> 
> Here's the goofy part: If I login to the server with the credentials that the 
> mainframe uses to call the first .bat file, and manually run the .bat file 
> that starts the whole process, it runs correctly.

Hello John,

When you say that you log in to the server,  are you logging into a user
account on the server?  And do you get a command prompt (i.e. you are
ssh-ing into your server)?

Cheers,

--Paul

--
PGP: 0x3DB6D884
PGP Fingerprint: EBA7 88B3 6D98 2D4A E045  A9F7 C7C6 6ADF 3DB6 D884

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

Reply via email to