From a138c0d83b0ff1feed385c5d2d7a1c25422fe04d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 19 Aug 2017 18:17:43 +0200 Subject: [PATCH] Fix incorrect "openssl rand" usage (#138). --- easyrsa3/easyrsa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index e004e2b..f73b375 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -572,7 +572,7 @@ sign_req() { # Randomize Serial number local i= serial= check_serial= for i in 1 2 3 4 5; do - "$EASYRSA_OPENSSL" rand -hex 16 -out "$EASYRSA_PKI/serial" + "$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