Page MenuHome GnuPG

file decryption not happening with passphrase from webmethods
Closed, InvalidPublic

Description

file decryption not happening with passphrase from webmethods and getting below error

gpg: encrypted with RSA key, ID AA4502F7
gpg: decryption failed: No secret key

below is the command used for decrypt
echo ****| gpg --batch --passphrase-fd 0 --output e:\eai\concurspartech\pgpcomplete\test.txt --decrypt e:\eai\concurspartech\pgptemp\test.txt.asc

Please help me in resolving above issue.

Details

Version
2.3

Event Timeline

werner added a subscriber: werner.

Please use one of the mailing lists to solve your problem. 2.3 is a development version, so I wonder from where you got this version of GnuPG.

The error message is clear: You do not have a secret key to decrypt the message. Check your secret keys using

gpg -K AA4502F7

if it is not shown ; do you have the public key:

gpg -k AA4502F7

Also check that your web methods (?) uses the same environment as you do on the command limen. You can run

gpgconf --list-dirs

and check that things are okay.

Hi Werner,

We are using the gpg4win-2.3.3. The below command working fine when i run on commandline and even when i execute the batch file from windows folder it is decrypting the file. But when i run batch file from webmethods getting the below error.

gpg: encrypted with RSA key, ID AA4502F7
gpg: decryption failed: No secret key

Please help me in resolving this issue in webmethods.

Regards

Hari


From: werner (Werner Koch) <noreply@dev.gnupg.org>
Sent: Thursday, May 16, 2019 11:40:41 AM
To: Hari Marepally
Subject: [Task] [Updated] T4519: file decryption not happening with passphrase from webmethods

werner edited projects, added Not A Bug, gnupg; removed Bug Report.
werner added a comment.

Please use one of the mailing lists to solve your problem. 2.3 is a development version, so I wonder from where you got this version of GnuPG.

The error message is clear: You do not have a secret key to decrypt the message. Check your secret keys using

gpg -K AA4502F7

if it is not shown ; do you have the public key:

gpg -k AA4502F7

Also check that your web methods (?) uses the same environment as you do on the command limen. You can run

gpgconf --list-dirs

and check that things are okay.

TASK DETAIL
https://dev.gnupg.org/T4519

EMAIL PREFERENCES
https://dev.gnupg.org/settings/panel/emailpreferences/

To: werner

Cc: werner, hari, srgblnchtrn, gp_ast

This is an automated email from the GnuPG development hub. If you have registered in the past at https://bugs.gnupg.org/ your account was migrated automatically. You can visit https://dev.gnupg.org/ to set a new password and update your email preferences.

I can't see any bug here so I will close this bug now.

Please use a public mailing list or use a commercial service for support. For example gnupg-users at gnupg.org or see https://gnupg.org/service.html .