I recently needed to publish my PGP key. However the export is veeery long:
$ gpg2 --list-secret-keys --keyid-format LONG
/home/user/.gnupg/pubring.kbx
-----------------------------
sec rsa4096/51DAE9B7C1AE9161 2015-06-17 [SCA] [expires: 2023-04-21]
97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
uid [ultimate] NicoHood <removed>
uid [ultimate] N <removed>
uid [ultimate] NNNNN <removed>
uid [ultimate] NNNNN <removed>
uid [ultimate] _____ <removed>
uid [ultimate] NicoHood <removed>
uid [ultimate] NicoHood <gremoved>
uid [ultimate] _____ <removed>
uid [ultimate] _____ <removed>
uid [ultimate] NNNNN <removed>
uid [ultimate] NicoHood <removed>
uid [ultimate] NicoHood <removed>
uid [ultimate] NicoHood <removed>
ssb rsa4096/E441069FE948D07A 2015-06-17 [E] [expires: 2023-04-21]
$ gpg2 --armor --export 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161 | wc -l
583
- Is there an option to only output the key with one identity?
- Is it possible to shorten the output to less than those ~500 lines? (maybe with or without the idea above)
- How can I fix those ugly names?