Question Regarding Passphrases When Signing

Hauke Laging mailinglisten at
Fri Jan 10 09:44:16 CET 2014

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 572 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20140110/b2647b8b/attachment.sig>

More information about the Gnupg-users mailing list