Re: How to display the reason for a revocation in GPG?

2013-03-05 Thread Claudius Hubig
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



How to display the reason for a revocation in GPG?

2013-02-22 Thread Claudius Hubig
Dear all,

is there any option to display the revocation reason for a given key
in GPG?

As you may know, GPG asks for a ‘reason’ when generating a revocation
certificate (compromised, superseded etc.) and furthermore allows for
a free-form comment to be submitted.

Is there any way to display this reason  comment, given a revoked
public key?

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/20130222144748.5a5c7...@ares.home.chubig.net