Add "reason" check

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-04-27 03:28:23 +01:00
parent fdcaf6cf79
commit 7914255760
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -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