一个问题基于这个帖子。
如果你想信任一个公钥,两个命令可以达到目的:
gpg --edit-key someone's_public_key
gpg --sign-key someone's_public_key
我发现的最明显的一点是你有 6 个选择--edit-key
:
gpg> sign
1 = I don't know or won't say
2 = I do NOT trust
3 = I trust marginally
4 = I trust fully
5 = I trust ultimately
m = back to the main menu
是gpg --sign-key someone's_public_key
= gpg --edit-key someone's_public_key (option 5)
?
他们之间还有哪些要点呢?
答案1
我的man gpg
说:
--sign-key name
Signs a public key with your secret key. This is a shortcut version of the subcommand "sign" from --edit.
由于没有 option --edit
,但有--edit-key
和--edit-card
,我假设它们的意思是--edit-key
,并且它确实是相同的(选择的模默认值)。