歡迎您光臨本站 註冊首頁

【求助】dnssec-keygen工作不正常。。

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

【求助】dnssec-keygen工作不正常。。

在用」dnssec-keygen -a HMAC-MD5 -b 128 -n HOST keyname「生成key的時候,敲完回車后
經常沒有響應,而有時候就能很快完成。。奇怪。。
有人知道這是什麼原因嗎?
《解決方案》

用 "-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.
《解決方案》

原帖由 diancn 於 2009-8-26 08:47 發表 http://bbs2.chinaunix.net/images/common/back.gif
用 "-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兄為俺指明方向!開始都不知道還跟這東西有關係。。

[火星人 ] 【求助】dnssec-keygen工作不正常。。已經有841次圍觀

http://coctec.com/docs/service/show-post-21030.html