gnupg:不能保证此密钥属于命名用户 [英] gnupg: There is no assurance this key belongs to the named user

查看:320
本文介绍了gnupg:不能保证此密钥属于命名用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试使用名为Pass的有趣的密码管理工具.

I'm trying to use interesting password management tool named Pass.

我做了以下事情:

  1. 已安装的gpg工具$ sudo dnf install gpg
  2. 使用$ gpg --gen-key
  3. 生成了密钥
  4. 此处
  5. 所述键入$ pass init "foobar id of my gpg key"
  6. 知道了
  1. Installed gpg tool $ sudo dnf install gpg
  2. Generated a key using $ gpg --gen-key
  3. Typed $ pass init "foobar id of my gpg key" as stated here
  4. Got

mkdir: created directory ‘/home/chichivica/.password-store/’ Password store initialized for foobar@email.com

mkdir: created directory ‘/home/chichivica/.password-store/’ Password store initialized for foobar@email.com

  1. 试图添加一个简单的密码

$ pass insert foo Enter password for foo: Retype password for foo:

$ pass insert foo Enter password for foo: Retype password for foo:

  1. 有问题

gpg: A45A123C: There is no assurance this key belongs to the named user gpg: [stdin]: encryption failed: Unusable public key

gpg: A45A123C: There is no assurance this key belongs to the named user gpg: [stdin]: encryption failed: Unusable public key

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

Could anyone give me some advice? Maybe something I misunderstand? Thanks in advance.

推荐答案

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

I had the same issue after copying my key pair from one machine to another. The solution for me was the set the trust level of the keys:

gpg --edit-key <KEY_ID>
gpg> trust

系统会要求您从以下选项中选择信任级别:

You will be asked to select the trust level from the following:

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个,所以我当然会最终信任它:).它将要求您确认您的决定:

I selected 5 since I created the key so of course I trust it ultimately :). It will ask you to confirm your decision:

Your decision? 5
Do you really want to set this key to ultimate trust? (y/N) y

确认后,您应该可以使用该密钥进行加密.

After confirming, you should be able to encrypt using that key.

这篇关于gnupg:不能保证此密钥属于命名用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆