无法检查签名:找不到公钥 [英] Can't check signature: public key not found

查看:511
本文介绍了无法检查签名:找不到公钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用以下命令解密文件:

I try to decrypt file using following command:

gpg --output file.txt --decrypt file.pgp

文件已成功解密,但出现错误:

File is decrypted successfully but i get an error:


gpg:无法检查签名:未找到公钥

"gpg: Can't check signature: public key not found"

任何想法,为什么我会收到此错误?

Any idea, why I get this error?

推荐答案

您会收到此错误,因为您没有签署该签名的人的公钥。信息。

You get that error because you don't have the public key of the person who signed the message.

gpg 应该会给您一条消息,其中包含用于对其进行签名的密钥的ID。从对文件进行加密的人那里获取公共密钥,并将其导入到您的密钥环中( gpg2 --import key.asc );您应该能够在此之后验证签名。

gpg should have given you a message containing the ID of the key that was used to sign it. Obtain the public key from the person who encrypted the file and import it into your keyring (gpg2 --import key.asc); you should be able to verify the signature after that.

如果发件人将其公钥提交给密钥服务器(例如, https://pgp.mit.edu/ ),则可以直接从密钥服务器中导入密钥:

If the sender submitted its public key to a keyserver (for instance, https://pgp.mit.edu/), then you may be able to import the key directly from the keyserver:

gpg2 --keyserver https://pgp.mit.edu/ --search-keys <sender_name_or_address>

这篇关于无法检查签名:找不到公钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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