Sample Header Ad - 728x90

PGP key export is very long - how to shorten?

2 votes
1 answer
826 views
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 
uid                 [ultimate] N 
uid                 [ultimate] NNNNN 
uid                 [ultimate] NNNNN 
uid                 [ultimate] _____ 
uid                 [ultimate] NicoHood 
uid                 [ultimate] NicoHood 
uid                 [ultimate] _____ 
uid                 [ultimate] _____ 
uid                 [ultimate] NNNNN 
uid                 [ultimate] NicoHood 
uid                 [ultimate] NicoHood 
uid                 [ultimate] NicoHood 
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?
Asked by NicoHood (131 rep)
Oct 28, 2020, 07:38 PM
Last activity: Oct 28, 2020, 10:28 PM