From 9fccc3373c019d5144a1b3ecf260a4a42caf51df Mon Sep 17 00:00:00 2001 From: Victor Foitzik Date: Fri, 25 Aug 2017 07:39:20 +0000 Subject: [PATCH] Fix error in random serial generation. --- easyrsa3/easyrsa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 55de809..8ec7adf 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -573,7 +573,7 @@ sign_req() { # Randomize Serial number local i= serial= check_serial= for i in 1 2 3 4 5; do - "$EASYRSA_OPENSSL" rand -hex -out "$EASYRSA_PKI/serial 16" + "$EASYRSA_OPENSSL" rand -hex -out "$EASYRSA_PKI/serial" 16 serial="$(cat "$EASYRSA_PKI/serial")" check_serial="$("$EASYRSA_OPENSSL" ca -config "$EASYRSA_SSL_CONF" -status "$serial" 2>&1)" case "$check_serial" in