Skip to content

Commit

Permalink
gen-req: Make use of unsupported option --req-cn fatal
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Mar 27, 2024
1 parent 8165d31 commit b2d6f7c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,13 @@ Run easyrsa without commands for usage and commands."
fi

# Enforce commonName
export EASYRSA_REQ_CN="$file_name_base"
if [ "$EASYRSA_REQ_CN" = ChangeMe ]; then
export EASYRSA_REQ_CN="$file_name_base"
else
user_error "\
Option conflict:
* '$cmd' does not support setting an external commonName"
fi

# Output files
key_out="$EASYRSA_PKI/private/${file_name_base}.key"
Expand Down

0 comments on commit b2d6f7c

Please sign in to comment.