LinuxSir.cn,穿越时空的Linuxsir!

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

有熟悉gnupg的吗?帮我看看为什么不能生成key?

[复制链接]
发表于 2008-10-22 23:47:18 | 显示全部楼层 |阅读模式
gpg --gen-key
gpg (GnuPG) 2.0.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.

Warning: using insecure memory!
Please select what kind of key you want:
   (1) DSA and Elgamal (default)
   (2) DSA (sign only)
   (5) RSA (sign only)
Your selection? 1
DSA keypair will have 1024 bits.
ELG keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048)
Requested keysize is 2048 bits
Please specify how long the key should be valid.
         0 = key does not expire
      <n>  = key expires in n days
      <n>w = key expires in n weeks
      <n>m = key expires in n months
      <n>y = key expires in n years
Key is valid for? (0) 0
Key does not expire at all
Is this correct? (y/N) y

You need a user ID to identify your key; the software constructs the user ID
from the Real Name, Comment and Email Address in this form:
    "Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"

Real name: fender
Email address: fender@163.com
Comment:
You selected this USER-ID:
    "fender <fender@163.com>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o
You need a Passphrase to protect your secret key.

can't connect to `/home/fender/.gnupg/S.gpg-agent': No such file or directory
gpg-agent[1746]: can't connect server: `ERR 67109133 can't exec `/usr/local/bin/pinentry': No such file or directory'
gpg-agent[1746]: can't connect to the PIN entry module: IPC connect call failed
gpg-agent[1746]: command get_passphrase failed: No pinentry
gpg: problem with the agent: No pinentry
gpg: Key generation canceled.
发表于 2009-3-7 18:54:38 | 显示全部楼层
还要安装pinentry

在FreeBSD里是安装/usr/ports/security/pinentry-curses比较简单一些。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-7 19:01:15 | 显示全部楼层
这个我已经解决了,我装了一个gnome的那个相关库。
回复 支持 反对

使用道具 举报

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

本版积分规则

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