Question Regarding Passphrases When Signing

Jim Ernst jernst at
Fri Jan 10 22:01:33 CET 2014

Hi Hauke - thanks for the info - it is now working.

Jim E.

-----Original Message-----
From: Hauke Laging [mailto:mailinglisten at]
Sent: Friday, January 10, 2014 3:44 AM
To: gnupg-users at
Cc: Jim Ernst
Subject: Re: Question Regarding Passphrases When Signing

Am Do 09.01.2014, 20:51:04 schrieb Jim Ernst:

> I am trying to sign and encrypt a file using a UNIX script. No matter
> what I do, the passphrase that is requested appears to be for the
> first key that is listed via -list-keys.

> I have tried specifying a recipient

You must define the signing key:

gpg --local-user 0x12345678 --detach-sign file or shorter gpg -u 0x12345678 --detach-sign file

Crypto für alle:
OpenPGP: 7D82 FB9F D25A 2CE4 5241 6C37 BF4B 8EEF 1A57 1DF5
CONFIDENTIALITY NOTICE: The information in this e-mail message and any attachments may contain privileged, confidential or proprietary information, including confidential health information, protected by applicable Federal or state laws. Such information is intended only for the recipient named above. If you are not the intended recipient, please notify the sender immediately, and take notice that any use, disclosure or distribution of such information is prohibited by law.

More information about the Gnupg-users mailing list