Iva*_*aev 102 encryption passwords gnupg public-key-encryption
我正在尝试使用名为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
有人能给我一些建议吗?也许我误解了什么?提前致谢.
Jon*_*Jon 200
将我的密钥对从一台机器复制到另一台机器后,我遇到了同样的问题.我的解决方案是设置密钥的信任级别:
gpg --edit-key <KEY_ID>
gpg> trust
Run Code Online (Sandbox Code Playgroud)
系统将要求您从以下选项中选择信任级别:
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
Run Code Online (Sandbox Code Playgroud)
我创建密钥后选择了5,所以当然我最终相信它:).它会要求您确认您的决定:
Your decision? 5
Do you really want to set this key to ultimate trust? (y/N) y
Run Code Online (Sandbox Code Playgroud)
确认后,您应该能够使用该密钥进行加密.