Gpg
gpg —list-keys 命令輸出 uid不知道_____在nķn這在nunknown將私鑰導入全新安裝後
我完成了 Arch Linux 的全新安裝並導入了我備份的 gpg 私鑰。作為健全性檢查,我跑了:
gpg —list-keys
一切都正常顯示,除了
uid
現在顯示:uid [ unknown ] User < user@useremail.com >
當我在全新安裝之前第一次創建此密鑰時,它顯示:
uid [ ultimate ] User < user@useremail.com >
為什麼將其導入全新安裝後會從
[ ultimate ]
變為?[ unknown ]
提前致謝。
GNUPG 有一個信任數據庫,儲存在
~/.gnupg/trustdb.gpg
--export-ownertrust
您可以使用以下選項備份此信任數據庫:gpg --export-ownertrust > file.txt
如果您導出了您的密鑰並稍後將它們導入到新環境中,則信任數據庫將不再存在。
但是,這很容易解決:
gpg --edit-key user@useremail.com gpg> trust Please decide how far you trust this user to correctly verify other users' keys (by looking at passports, checking fingerprints from different sources, etc.) 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 Your decision? 5
並且不要忘記保存更改:
gpg> save