我的设置:
~/.gnupg $ gpg --edit-key 92432433
gpg (GnuPG) 1.4.9; Copyright (C) 2008 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Secret key is available.
pub 1024D/8---- created: 2010-01-02 expires: 2011-01-02 usage: SC
trust: ultimate validity: ultimate
sub 2048g/0----- created: 2010-01-02 expires: 2011-01-02 usage: E
[ultimate] (1). Hello <Testing>
我在 Evolution 中得到了这个:
Because "gpg: [email protected]: skipped: public key not found
gpg: [stdin]: encryption failed: public key not found
", you may need to select different mail options.
运行以下命令没有帮助:
ps aux |grep gpg
# choosing the process id and killing gpg --daemon
kill <process_id>
eval `gpg --daemon`
# restarting Evolution and getting the same error with
# Security settings without ticks at the four option boxes
# and havinsg my correct key-id in the box: I do remember my password
答案1
您是否想给自己发送加密邮件?如果不是,为自己生成密钥是不够的,您还需要导入收件人的公钥。
在您的 gpg 转储中,它显示“Hello”<Testing>为您的主要身份。电子邮件字段被 gpg 用于获取收件人的密钥,因此如果您在其中输入虚假值,它将无法自动使用它。
答案2
对于其他人:如果您使用的是 Ubuntu,请检查“密码和加密密钥”应用程序(我相信是海马;默认安装并显示在附件菜单中)