Spoke too soon. The wrong path was part of the problem, but I’m still having
the issue:
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 RDP into the server with the credentials specified in the mainframe JCL, I
see this from the decrypt:
gpg: armor header: Version: GnuPG v1.4.9 (AIX)
gpg: public key is 07F7097A
gpg: using subkey 07F7097A instead of primary key AB96877A
gpg: using subkey 07F7097A instead of primary key AB96877A
gpg: encrypted with 2048-bit ELG key, ID 07F7097A, created 2007-05-25
"FMCSFTPKey <e-mail address>"
gpg: AES256 encrypted data
gpg: original file name='DE-ETE-090313'
What do I need to do, or have the owners of the encrypted data do, to resolve
this?
From: Paul R. Ramer [mailto:[email protected]]
Sent: Tuesday, September 10, 2013 12:46 AM
To: Diaz, John, A
Cc: [email protected]
Subject: RE: Decrypt Issue
"Diaz, John, A" <[email protected]<mailto:[email protected]>> wrote:
Paul, got it figured out. Programmer too stupid. The path to gpg.exe had
changed, and I didn't catch it.
-----Original Message-----
From: Paul R. Ramer [mailto:[email protected]]
Sent: Saturday, September 07, 2013 2:22 PM
To: Diaz, John, A
Cc: [email protected]<mailto:[email protected]>
Subject: Re: Decrypt Issue
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
________________________________
NOTICE: This e-mail (and any attachments) may contain PRIVILEGED OR
CONFIDENTIAL information and is intended only for the use of the specific
individual(s) to whom it is addressed. It may contain information that is
privileged and confidential under state and
federal law. This information may be used or disclosed only in accordance with
law, and you may be subject to penalties under law for improper use or further
disclosure of the information in this e-mail and its attachments. If you have
received this e-mail in error, please immediately notify the person named above
by reply e-mail, and then delete the original e-mail. Thank you.
Well, I am glad you figured it out. :-)
Cheers,
--Paul
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
_______________________________________________
Gnupg-users mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnupg-users