gnupg:无法保证此密钥属于指定用户

问题描述 投票:105回答:2

我正在尝试使用名为Pass的有趣的密码管理tool。>>

我做了以下事情:

  1. 已安装的gpg工具$ sudo dnf install gpg
  2. 使用$ gpg --gen-key生成密钥
  3. $ pass init "foobar id of my gpg key"所述键入here
  4. Got
  5. mkdir: created directory ‘/home/chichivica/.password-store/’ Password store initialized for [email protected]

  1. 试图添加简单密码
  2. $ pass insert foo Enter password for foo: Retype password for foo:

  1. 有问题
  2. gpg: A45A123C: There is no assurance this key belongs to the named user gpg: [stdin]: encryption failed: Unusable public key

有人可以给我一些建议吗?也许我误会了什么?预先感谢。

我正在尝试使用名为Pass的有趣的密码管理工具。我做了以下操作:安装了gpg工具$ sudo dnf install gpg使用$ gpg生成了一个密钥--gen-key键入了$ pass init“ foobar id ...

encryption passwords public-key-encryption gnupg
2个回答
209
投票

我将密钥对从一台机器复制到另一台机器后,我遇到了同样的问题。对我来说,解决方案是设置密钥的信任级别:


0
投票

这对我不起作用。仍然:gpg:密码存储密钥:跳过:无公共密钥gpg:[stdin]:加密失败:没有公钥密码加密已中止。

© www.soinside.com 2019 - 2024. All rights reserved.