New --keyid-format=none
Werner Koch
wk at gnupg.org
Mon Jun 6 19:03:52 CEST 2016
Hi!
We have been talking about this since January, so it was time to
implement it for the forthcoming 2.1.13. We now do not show key ids
anymore by default (those who have configured gpg to use long key ids
won't notice that change, though). Here is an example:
$ gpg --no-options -k 1e42b367
pub dsa2048 2007-12-31 [SC] [expires: 2018-12-31]
80615870F5BAD690333686D0F2AD85AC1E42B367
uid [ full ] Werner Koch <wk at gnupg.org>
uid [ full ] Werner Koch <wk@[...]>
uid [ full ] Werner Koch <werner@[...]>
sub dsa1024 2011-11-02 [S]
sub rsa2048 2014-01-02 [E] [expires: 2016-12-31]
as you can see we print the fingerprint in a compact format to make c+p
much easier. To show the better readable format use
$ gpg --no-options --with-fingerprint -k 1e42b367
pub dsa2048 2007-12-31 [SC] [expires: 2018-12-31]
8061 5870 F5BA D690 3336 86D0 F2AD 85AC 1E42 B367
uid [ full ] Werner Koch <wk at gnupg.org>
[...]
In rare cases the fingerprints of the subkeys are of interest. This can
either be done by using --with-fingerrpints twice or with a new option:
$ gpg --no-options --with-subkey-fingerprint -k 1e42b367
pub dsa2048 2007-12-31 [SC] [expires: 2018-12-31]
80615870F5BAD690333686D0F2AD85AC1E42B367
uid [ full ] Werner Koch <wk at gnupg.org>
uid [ full ] Werner Koch <wk@[...]>
uid [ full ] Werner Koch <werner@[...]>
sub dsa1024 2011-11-02 [S]
E4B868C8F90C8964B5AF9DBC4F0540D577F95F95
sub rsa2048 2014-01-02 [E] [expires: 2016-12-31]
16CC3D3B02382A7F67B5C2111E0FE11D664D7444
To get back to the old format use --keyid-format=long - but I would
strongly suggest to get used to the new fingerprint only format. And
yes, I should have used at least the long keyid to select my key in the
examples ;-)
Even with the default --keyid-format=none diagnostics which refer a key
use the long key id. Changing this to a fingerprint would make the
error messages too hard to read.
Salam-Shalom,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
/* EFH in Erkrath: https://alt-hochdahl.de/haus */
More information about the Gnupg-devel
mailing list