LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1174|回复: 1

gpg: message.txt: encryption failed: unusable public key

[复制链接]
发表于 2005-10-24 16:44:48 | 显示全部楼层 |阅读模式
[alice@client ~]$ gpg --encrypt --armor --recipient bobby message.txt
gpg: WARNING: unsafe permissions on configuration file "/home/alice/.gnupg/gpg.conf"
gpg: WARNING: unsafe enclosing directory permissions on configuration file "/home/alice/.gnupg/gpg.conf"
gpg: 95B0A7D9: There is no indication that this key really belongs to the owner
1024g/95B0A7D9 2005-10-24 "bobby (bobby) <bob@server.example.org>"
Primary key fingerprint: A2F1 7484 EBF1 779B DF11  77DA 43CC B492 E46F 6791
      Subkey fingerprint: 95D4 1042 C343 8050 FE38  685F 097C 27F4 95B0 A7D9

It is NOT certain that the key belongs to the person named
in the user ID.  If you *really* know what you are doing,
you may answer the next question with yes

Use this key anyway?
gpg: message.txt: encryption failed: unusable public key
[alice@client ~]$

我参考KEVIN老师的GPG实验
创建alice bob
su - alice
mkdir .gnupg
gpg --gen-key
建立了KEY
BOB同
然后

BOB下
gpg --export --armor bobby > /tmp/bob.key
输出PUB KEY

ALICE下
gpg --import /tmp/bob.key
倒入BOB的PUB KEY

echo "11111">message.txt
gpg --encrypt --armor --recipient bobby message.txt
用BOB的PUBKEY加密asd.txt
问题就出在这里了。。。。
gpg: message.txt: encryption failed: unusable public key
意思是这个PUBKEY是没用的PUBKEY。。。晕倒。。

不过第一次做我是做出来的 不过后来想脱离书本做一下就失败了
然后再看书做。。也是这样
发表于 2005-10-25 13:26:58 | 显示全部楼层
Maybe you can try some of the gpg commands in this thread and see if that will help:
http://www.linuxsir.cn/bbs/showthread.php?t=211828
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表