From: W. Trevor King Date: Sat, 23 May 2015 19:28:42 +0000 (-0700) Subject: GnuPG_maintenance: Add a section on --list-packets X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ae25ed3b05750458e5f54b99608a75fc6f49d3a6;p=blog.git GnuPG_maintenance: Add a section on --list-packets --- diff --git a/posts/GnuPG_maintenance.mdwn b/posts/GnuPG_maintenance.mdwn index 675907c..06b4ddc 100644 --- a/posts/GnuPG_maintenance.mdwn +++ b/posts/GnuPG_maintenance.mdwn @@ -117,6 +117,23 @@ Once you've saved the key, it will change to `[ultimate]`. I imagine the initial `[unknown]` listing is because you haven't officially confirmed the new ID's signature by saving your changes. +Inspecting GnuPG files +---------------------- + +If you want to see what's inside a GnuPG-generated file (e.g. you +forgot which subkeys are in the ASCII-armored public key you published +earlier), you can use: + + $ gpg --list-packets ~/.gnupg/pubkey.txt + :public key packet: + version 4, algo 17, created 1218318982, expires 0 + … + :public sub key packet: + version 4, algo 16, created 1218319006, expires 0 + … + keyid: 7C572F3442407C74 + … + [keygen]: http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-keygen&sektion=1 [diff]: http://www.samsimpson.com/static/pgpfaq#SubRSADH