小编Dis*_*eth的帖子

无法将 /root/.rnd 加载到 RNG 中:在哪里可以找到它,或者如何创建它?

我正在尝试在 Ubuntu Server 18.04 上使用 OpenVPN 设置 VPN 服务器,并且我想使用 EasyRSA 来构建我的 PKI CA。

因此,当以 root 身份连接时,我启动了复制到/etc/openvpn/easy-rsa. 使用./clean-alland一切正常./build-dh,但是当我尝试启动时./pkitool --initca,出现此错误:

Can't load /root/.rnd into RNG
140171234709952:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/root/.rnd
Run Code Online (Sandbox Code Playgroud)

在 openssl 配置文件 ( /etc/openvpn/easy-rsa/openssl-1.0.0.cnf) 中,我发现这一行表明它尝试到达的原因/root/.rnd

RANDFILE    = $ENV::HOME/.rnd
Run Code Online (Sandbox Code Playgroud)

根据我在网上阅读和理解的内容,.rnd是 openssl 用于生成随机数的种子。奇怪的是:即使我收到此错误,脚本也会生成 RSA 私钥。我只是担心它不是随机的,因为它没有种子。

所以我的问题是:这个文件在我的系统上不存在,它/root/不在/home/user/其中,不在which 是我唯一的其他用户,并且不find / -name ".rnd"返回任何内容。甚至find / -iname "*.rnd"什么都不返回。

我什至不知道如何创建它,或者我是否理解这一切都是错误的。

openssl random-number-generator

16
推荐指数
2
解决办法
2万
查看次数

标签 统计

openssl ×1

random-number-generator ×1