sign-req: Error check creation of x509-type temp-files

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2023-07-15 21:43:47 +01:00
parent 7039d02952
commit 93a8980c5e
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -2263,7 +2263,9 @@ Writing 'copy_exts' to SSL config temp-file failed"
easyrsa_mktemp x509_type_tmp || \
die "sign_req - easyrsa_mktemp x509_type_tmp"
create_x509_type "$crt_type" > "$x509_type_tmp"
create_x509_type "$crt_type" > "$x509_type_tmp" || \
die "sign_req - create_x509_type $crt_type"
x509_type_file="$x509_type_tmp"
fi
@ -2277,7 +2279,9 @@ Writing 'copy_exts' to SSL config temp-file failed"
easyrsa_mktemp x509_COMMON_tmp || \
die "sign_req - easyrsa_mktemp x509_COMMON_tmp"
create_x509_type COMMON > "$x509_COMMON_tmp"
create_x509_type COMMON > "$x509_COMMON_tmp" || \
die "sign_req - create_x509_type COMMON"
x509_COMMON_file="$x509_type_tmp"
fi