gpg --list-keys --with-colons
David Shaw
dshaw at jabberwocky.com
Thu Jan 29 15:07:41 CET 2009
On Jan 29, 2009, at 5:25 AM, Ramon Loureiro wrote:
>
> Hi!
> How can I get an output like this
>
> gpg --list-keys --with-fingerprint --with-colons --fixed-list-mode
>
> for an individual key?
>
> The first command gives me:
> fpr:::::::::BE8E51366A32B5EF01050DFBC5592ACB80C7D647:
> uid:-::::1227007455::AF22C2EEE20225B675535975D39D55B385ED6EDA::Ramon
> Loureiro Alonso:
> uid:-::::1225455630::AFFC972DC009F22F1C40EFE992C5D4663D03B8B8::Ramon
> Loureiro <loureiro at iua.upf.es>:
> uid:-::::1225455630::FB0A955D846500FF68A578EC5B473028B2395662::Ramon
> Loureiro <rloureiro at iua.upf.es>:
> uid:-::::1225455630::4FE138B26FF82EA19D7A2B474B4663D40A4369C7::Ramon
> Loureiro Alonso (Thawte Notary):
> uid:-::::1227007451::B1650511D910BEAB9BC20F5C7CD8F93D0824AF70::Ramon
> Loureiro <ramon.loureiro at upf.edu>:
> uid:-::::1225455630::9E7A3AF3CE4208C145F7682ABC7CB4FC32CA87CA::Ramon
> Loureiro <ramon.loureiro at gmail.com>:
> uid:r::::::C570496C64343A572B987B9BB13861588406847A::Ramon Loureiro
> (GSWoT\x3aSP66) <loureiro at gswot.org>:
> uid:-::::1228770984::A1FF7441DBAA7F3E731D0BD9D963A0F24E12DB8E::Ramon
> Loureiro Alonso (GSWoT\x3aES66) <loureiro at gswot.org>:
> ....
> for the whole keyring, and that is the kind of output that I want.
>
> but if I try
>
> gpg --list-key 0x80C7D647 --with-fingerprint --with-colons
> --fixed-list-mode
>
> it gives me this:
> pub 2048R/80C7D647 2008-04-29
> uid Ramon Loureiro Alonso
> uid Ramon Loureiro <loureiro at iua.upf.es>
> uid Ramon Loureiro <rloureiro at iua.upf.es>
> uid Ramon Loureiro Alonso (Thawte Notary)
> uid Ramon Loureiro <ramon.loureiro at upf.edu>
> uid Ramon Loureiro <ramon.loureiro at gmail.com>
> uid Ramon Loureiro Alonso (GSWoT:ES66)
> <loureiro at gswot.org>
> sub 2048R/32A7F276 2008-04-29
Put the keyid at the end of the line:
gpg --with-fingerprint --with-colons --fixed-list-mode --list-keys
0x80C7D647
David
More information about the Gnupg-users
mailing list