我正在尝试使用有趣的名为Pass的密码管理工具。
我做了以下工作:
$ sudo dnf install gpg$ gpg --gen-key生成密钥$ 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
有人能给我一些建议吗?
发布于 2015-12-07 11:52:26
在将密钥对从一台机器复制到另一台机器后,我也遇到了同样的问题。对我来说,解决方案是设置密钥的信任级别:
gpg --edit-key <KEY_ID>
gpg> trust您将被要求从以下内容中选择信任级别:
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我选择了5,因为我创建了密钥,所以当然,我最终相信它:)。它将要求你确认你的决定:
Your decision? 5
Do you really want to set this key to ultimate trust? (y/N) y确认后,退出:
gpg> quit然后,您应该能够使用该密钥加密。
https://stackoverflow.com/questions/33361068
复制相似问题