Can't load /root/.rnd into RNG

Asma picture Asma · Sep 15, 2020 · Viewed 7.5k times · Source

I want to generate a server certificate using Windows Open SSL.

When I run this command line, it appear this error. What should I do?

Command

:
openssl req -new -x509 -days 3650 -key ca.key -out ca.crt

Error:

Can't load ./.rnd into RNG 10504:error:2406F079:random number generator:RAND_load_file:Cannot open file:crypto\rand\randfile.c:98:Filename=./.rnd

I also try to find openssl config file, but no, I don't have that file.

Answer

인엽띠 picture 인엽띠 · Sep 15, 2020

Try removing or commenting RANDFILE = $ENV::HOME/.rnd line in /etc/ssl/openssl.cnf