Skip to content

Commit

Permalink
Put the .rnd file in a local folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras Fekete committed Mar 28, 2023
1 parent 1cf2d9e commit 0a22017
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
15 changes: 1 addition & 14 deletions certs/renewcerts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions certs/renewcerts/wolfssl.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# wolfssl configuration file
#
HOME = .
RANDFILE = $ENV::HOME/.rnd

oid_section = new_oids

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 0a22017

Please sign in to comment.