免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 666 | 回复: 0
打印 上一主题 下一主题

关于GPG 来看看.我的public key 不能用??? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-12-10 11:12 |只看该作者 |倒序浏览
[chen@linux chen]$ gpg --output revoke.asc --gen-revoke chens
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information

sec  1024D/96B15F4A 2003-12-10   chens (Chen) <netkiller@9812.net>;

Create a revocation certificate for this key? y
Please select the reason for the revocation:
  0 = No reason specified
  1 = Key has been compromised
  2 = Key is superseded
  3 = Key is no longer used
  Q = Cancel
(Probably you want to select 1 here)
Your decision? 1
Enter an optional description; end it with an empty line:
>; chen jingfeng
>;
Reason for revocation: Key has been compromised
chen jingfeng
Is this okay? y

You need a passphrase to unlock the secret key for
user: "chens (Chen) <netkiller@9812.net>;"
1024-bit DSA key, ID 96B15F4A, created 2003-12-10

ASCII armored output forced.
Revocation certificate created.

Please move it to a medium which you can hide away; if Mallory gets
access to this certificate he can use it to make your key unusable.
It is smart to print this certificate and store it away, just in case
your media become unreadable.  But have some caution:  The print system of
your machine might store the data and make it available to others!
[chen@linux chen]$ ls
file.txt  revoke.asc


[chen@linux chen]$ gpg --armor --output chen.gpg --export chens
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
File `chen.gpg' exists. Overwrite (y/N)? y
[chen@linux chen]$

[chen@linux chen]$ gpg -ea -r chens file.txt
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
gpg: checking the trustdb
gpg: checking at depth 0 signed=0 ot(-/q/n/m/f/u)=0/0/0/0/0/1
[chen@linux chen]$ ls
chen.asc  chen.gpg  file.txt  file.txt.asc  revoke.asc
[chen@linux chen]$

[root@linux tmp]# gpg --list-keys
/root/.gnupg/pubring.gpg
------------------------
pub  1024D/96B15F4A 2003-12-10 chens (Chen) <netkiller@9812.net>;
sub  1024g/9C2DF656 2003-12-10

[root@linux tmp]#


[root@linux tmp]# gpg -d file.txt.asc
gpg: encrypted with 1024-bit ELG-E key, ID 9C2DF656, created 2003-12-10
      "chens (Chen) <netkiller@9812.net>;"
gpg: decryption failed: secret key not available
[root@linux tmp]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP