How to encrypt and sign with different keys

dom at dom at
Thu Jul 21 20:27:20 CEST 2016

Still need your help guys. The syntax listed below works (or I think it 
does) but how do I verify that the file was encrypted with key ID-A and 
signed with key ID-B? When I type "gpg filename.pgp" I get the information 
about encryption key but nothing mentions ID-B signing key. I am asking 
because recipient of the file claims that the signing key was used to 
encrypt the file and that he can't decrypt it.

 From: "Robert J. Hansen" <rjh at>
Sent: Monday, July 18, 2016 7:09 PM
To: gnupg-users at
Subject: Re: How to encrypt and sign with different keys   
> gpg --recipient ID-A --local-user B --encrypt --sign filename.txt

Grr. Typoed it.

gpg --recipient ID-A --local-user ID-B --encrypt --sign filename.txt

Gnupg-users mailing list
Gnupg-users at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20160721/756aad64/attachment-0001.html>

More information about the Gnupg-users mailing list