hab4_pki_tree.sh error - RAND_load_file:Cannot open file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

hab4_pki_tree.sh error - RAND_load_file:Cannot open file

1,525 Views
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

Tags (1)
3 Replies

1,381 Views
noorahmadshinwa
Contributor III

Hi,

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

0 Kudos

1,381 Views
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 

1,381 Views
jimmychan
NXP TechSupport
NXP TechSupport

You may refer to this:

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

0 Kudos