Merge pull request from uwehermann

Merge branch 'openssl_rand' of https://github.com/uwehermann/easy-rsa into uwehermann-openssl_rand
This commit is contained in:
Eric F Crist 2017-08-22 19:53:02 -05:00
commit 601a5ca918

View File

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