Merge branch 'TinCanTech-rewind-mkdir'

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-08-07 12:55:58 +01:00
commit 7b4d2fb23e
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -2518,6 +2518,11 @@ Unexpected input in file: $req_in"
key_out="$out_dir/private/$crt_cn.key"
req_out="$out_dir/reqs/$crt_cn.req"
# Create out_dir
for newdir in issued private reqs; do
mkdir -p "$out_dir/$newdir" || die "Failed to create: $out_dir/$newdir"
done
# NEVER over-write a renewed cert, revoke it first
deny_msg="\
Cannot renew this certificate because a conflicting file exists.