Add "reason" check
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
fdcaf6cf79
commit
7914255760
@ -1398,6 +1398,18 @@ Run easyrsa without commands for usage and command help."
|
||||
if [ "$1" ]; then
|
||||
crl_reason="$1"
|
||||
shift
|
||||
|
||||
case "$crl_reason" in
|
||||
unspecified | \
|
||||
keyCompromise |\
|
||||
CACompromise | \
|
||||
affiliationChanged | \
|
||||
superseded | \
|
||||
cessationOfOperation | \
|
||||
certificateHold ) : # ok
|
||||
;;
|
||||
*) die "Illegal reason: $crl_reason"
|
||||
esac
|
||||
else
|
||||
unset -v crl_reason
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user