Skip to content

Commit f28bea7

Browse files
committed
build-ca: Correct command option 'raw-ca' and forbid use in batch mode
Signed-off-by: Richard T Bonhomme <[email protected]>
1 parent bed3823 commit f28bea7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

easyrsa3/easyrsa

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1698,7 +1698,11 @@ build_ca() {
16981698
nopass)
16991699
[ "$prohibit_no_pass" ] || EASYRSA_NO_PASS=1
17001700
;;
1701-
raw*)
1701+
raw|raw-ca)
1702+
# option --raw-ca demands user interaction
1703+
# which forbids --batch
1704+
[ "$EASYRSA_BATCH" ] && user_error \
1705+
"--raw-ca is incompatible with --batch"
17021706
EASYRSA_RAW_CA=1
17031707
;;
17041708
*) user_error "Unknown command option: '$1'"

0 commit comments

Comments
 (0)