hab4_pki_tree.sh error - RAND_load_file:Cannot open file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

hab4_pki_tree.sh error - RAND_load_file:Cannot open file

2,835 次查看
antonio_santagi
Contributor IV

Hello, 

I am using hab4_pki_tree.sh script to generate keys and certificates for imX8m mini.

openssl version returns : 

OpenSSL 1.1.1 11 Sep 2018

when I run the script I get this error messages

Can't load /home/user/.rnd into RNG
140034165126976:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/home/user/.rnd
Using configuration from ../ca/openssl.cnf

Keys and certificates are anyway generated. Are they OK or should I fix what causes that error messages ?

I sought after openssl.cnf in my PC but I cannot find it.

I checked if it was permissions problem by running script with sudo, but still same error appears.

Should I change any setting on OpenSSL ?

I have seen keys and certs files are generated anyway, so can I go on with those files ?

thank you

标记 (1)
3 回复数

2,691 次查看
noorahmadshinwa
Contributor III

Hi,

I have the same issue and I'm running the same version of openssl.

0 项奖励
回复

2,691 次查看
noorahmadshinwa
Contributor III

antoniosantagiuliana

I managed to solve the issue by commenting out the line :

RANDFILE = $ENV::HOME/.rnd

from the file /etc/ssl/openssl.conf.

I hope this helps you too.

reference:

Can't load ./.rnd into RNG · Issue #7754 · openssl/openssl · GitHub 

2,691 次查看
jimmychan
NXP TechSupport
NXP TechSupport

You may refer to this:

habv4\imx\doc - uboot-imx - i.MX U-Boot 

0 项奖励
回复