GTS-Can‘t load /home/qwer/.rnd into RNG

在安装openssl证书的时候或者使用到使用 OpenSSL 命令生成随机数并将其输出到 .rnd 文件中。

qwer@qwer-PowerEdge-R630:/code/lyz/U1101_GMS_debug/android13/mt6877_T0_V5_2/alps$ development/tools/make_key media '/C=CH/ST=ShangHai/L=XuHui/O=Sunmontech/OU=SW/CN=xw/[email protected]'Enter password for 'media' (blank for none; password will be visible):
creating media.pk8 with no password
Generating RSA private key, 2048 bit long modulus (2 primes)
........................................................................................................................+++++
........+++++
e is 65537 (0x010001)
Can't load /home/qwer/.rnd into RNG
140120624194752:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/home/qwer/.rnd

解决办法

cd /root(你当前所使用的用户)
openssl rand -writerand .rnd

猜你喜欢

转载自blog.csdn.net/m0_66587877/article/details/131802907