Skip to content

Commit

Permalink
Merge branch 'rewind-mkdir' of ssh://github.com/TinCanTech/easy-rsa i…
Browse files Browse the repository at this point in the history
…nto TinCanTech-rewind-mkdir

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
  • Loading branch information
TinCanTech committed Aug 7, 2022
2 parents 3cd1492 + 30bb214 commit 10bce6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 10bce6c

Please sign in to comment.