On Thursday 21 July 2016 12:27:20 d...@mielko.com wrote:
>  From: "Robert J. Hansen" <r...@sixdemonbag.org>
>> gpg --recipient ID-A --local-user ID-B --encrypt --sign filename.txt
>
> 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.
The file is first signed and then encrypted. gpg can only give you 
information about the signing key if you decrypt the file.


> 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.

To prove/disprove this claim all you need to check is the encryption 
key(s) (which you already did with "gpg filename.pgp"). The output of 
"gpg filename.pgp" should contain
  gpg: encrypted with <key type> key, ID <some ID>, created <date>
where <some ID> is ID-A or the ID of an encryption subkey of the key 
with ID ID-A.


Regards,
Ingo

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to