gnupg:没有保证这个密钥属于指定的用户
我正在尝试使用名为Pass的有趣的密码pipe理工具 。
我做了以下几点:
- 安装gpg工具$ sudo dnf install gpg
-  使用$ gpg --gen-key生成$ gpg --gen-key
-  input$ pass init "foobar id of my gpg key"如此处所述
- 得到
 mkdir: created directory '/home/chichivica/.password-store/' Password store initialized for foobar@email.com 
- 试图添加一个简单的密码
 $ pass insert foo Enter password for foo: Retype password for foo: 
- 还有问题
 gpg: A45A123C: There is no assurance this key belongs to the named user gpg: [stdin]: encryption failed: Unusable public key 
任何人都可以给我一些build议吗? 也许是我误解的东西? 提前致谢。
将我的密钥对从一台机器复制到另一台机器后,我遇到了同样的问题。 我的解决scheme是设置密钥的信任级别:
 gpg --edit-key <KEY_ID> gpg> trust 
您将被要求从以下select信任级别:
 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 
自从我创build密钥以来,我select了5个,所以我最终相信它。 它会要求你确认你的决定:
 Your decision? 5 Do you really want to set this key to ultimate trust? (y/N) y 
确认后,您应该可以使用该密钥进行encryption。