![为什么 gpg 在 --list-keys 和 --list-secret-keys 中显示不同的 uid?](https://linux22.com/image/1491983/%E4%B8%BA%E4%BB%80%E4%B9%88%20gpg%20%E5%9C%A8%20--list-keys%20%E5%92%8C%20--list-secret-keys%20%E4%B8%AD%E6%98%BE%E7%A4%BA%E4%B8%8D%E5%90%8C%E7%9A%84%20uid%EF%BC%9F.png)
我已使用--edit-key命令添加了一个新的uid,并撤销了一个旧的uid。
这是我的输出(已经用“uidx”替换电子邮件):
▶ gpg --list-keys; gpg --list-secret-keys
/home/xxxx/.gnupg/pubring.gpg
-----------------------------
pub 2048R/A6573CCA 2012-07-26
uid uid1
uid uid2
uid uid3
uid uid4
uid [jpeg image of size 3757]
sub 2048R/88364032 2012-07-26
/home/xxxx/.gnupg/secring.gpg
-----------------------------
sec 2048R/A6573CCA 2012-07-26
uid An revoked uid5 here.
uid uid2
uid uid1
ssb 2048R/88364032 2012-07-26