Dear all, Claudius Hubig wrote: > is there any option to display the revocation reason for a given key > in GPG?
The following abomination does this quite well: $ gpg --export DEADBEEF | gpg --list-packets | grep -Pzao ':signature packet:.*\n\t.*sigclass 0x20(\n\t.*)*' with a sample output of, for example :signature packet: algo 1, keyid DEADBEEFDEADBEEF version 4, created 1361391004, md5len 0, sigclass 0x20 digest algo 8, begin of digest ef ce hashed subpkt 2 len 4 (sig created 2013-02-20) hashed subpkt 26 len 21 (policy: http://example.net/policy) hashed subpkt 29 len 23 (revocation reason 0x01 (I felt funny and wanted to revoke this key)) subpkt 16 len 8 (issuer key ID DEADBEEFDEADBEEF) data: [4093 bits] The binary values in subpacket 29 are documented in Section 5.2.3.23 of RFC 4880. Thanks to a certain Christopher Head for the hint to --export and --list-packets. Best, Claudius -- Please don’t CC me. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20130305141728.443c5...@ares.home.chubig.net