免费注册 查看新帖 |

Chinaunix

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

[DNS] 【求助】dnssec-keygen工作不正常。。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-25 09:15 |只看该作者 |倒序浏览
在用”dnssec-keygen -a HMAC-MD5 -b 128 -n HOST keyname“生成key的时候,敲完回车后
经常没有响应,而有时候就能很快完成。。奇怪。。
有人知道这是什么原因吗?

论坛徽章:
0
2 [报告]
发表于 2009-08-26 08:47 |只看该作者
用 "-r /dev/random" 或 "-r /dev/urandom" 指定随机设备。 后者随机性较差,详细差别问问google。适合centos4/5,其它平台类似。

以下来自bv9ARM手册,供参考。
-r randomdev Specifies the source of randomness. If the operating system does not provide a /dev/random or equivalent device, the default source of randomness is keyboard input. randomdev specifies the name of a character device or file containing random data to be used instead of the default. The special value keyboard indicates that keyboard input should be used.

论坛徽章:
0
3 [报告]
发表于 2009-08-26 14:22 |只看该作者
原帖由 diancn 于 2009-8-26 08:47 发表
用 "-r /dev/random" 或 "-r /dev/urandom" 指定随机设备。 后者随机性较差,详细差别问问google。适合centos4/5,其它平台类似。

以下来自bv9ARM手册,供参考。
-r randomdev Specifies the source of ran ...

多谢指教!默认是用的/dev/random,换成/dev/urandom后工作得很好。
以下是网上查到的某位老兄对这个的解释:
“You may be having a depleted entropy issue. By default, dnssec-keygen uses /dev/random as its source of random data for key generation. If, for some reason, demand outstrips supply, the process could appear to hang, while it waits for more numbers.

One solution might be to use /dev/urandom instead. It's a "less random" (and hence easier to generate) source of random data.”

非常感谢diancn兄为俺指明方向!开始都不知道还跟这东西有关系。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP