Put the .rnd file in a local folder

This commit is contained in:
Andras Fekete 2023-03-28 10:43:17 -04:00
parent 1cf2d9ece3
commit 0a2201700d
2 changed files with 2 additions and 16 deletions

View File

@ -860,20 +860,7 @@ echo ""
make clean
check_result $? "make clean"
RANDFILE=/var/lib/jenkins/.rnd
RANDFILE2=/home/jenkins/.rnd
# Test for OpenSSL .rnd file:
echo "RANDFILE = $RANDFILE"
echo "RANDFILE2 = $RANDFILE2"
if [ ! -f "$RANDFILE" ]; then
echo "We should touch $RANDFILE"
mkdir -p $(dirname $RANDFILE) && touch "$RANDFILE" || exit 1
fi
if [ ! -f "$RANDFILE2" ]; then
echo "We should touch $RANDFILE2"
mkdir -p $(dirname $RANDFILE2) && touch "$RANDFILE2" || exit 1
fi
touch certs/.rnd || exit 1
run_renewcerts
cd ../ || exit 1

View File

@ -2,7 +2,6 @@
# wolfssl configuration file
#
HOME = .
RANDFILE = $ENV::HOME/.rnd
oid_section = new_oids
@ -37,7 +36,7 @@ crlnumber = $dir/certs/crl/crlnumber # the current crl number
crl = $dir/certs/crl/crl.pem # The current CRL
private_key = $dir/certs/ca-key.pem # The private key
RANDFILE = $dir/certs/private/.rand # private random number file
RANDFILE = $dir/certs/.rnd # private random number file
x509_extensions = usr_cert # The extensions to add to the cert