Browse Source

Put the .rnd file in a local folder

Andras Fekete 1 year ago
parent
commit
0a2201700d
2 changed files with 2 additions and 16 deletions
  1. 1 14
      certs/renewcerts.sh
  2. 1 2
      certs/renewcerts/wolfssl.cnf

+ 1 - 14
certs/renewcerts.sh

@@ -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

+ 1 - 2
certs/renewcerts/wolfssl.cnf

@@ -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