Skip to content

Commit

Permalink
write: Use verify_working_env(), require a PKI
Browse files Browse the repository at this point in the history
Command 'write' requires a PKI for 'legacy' and 'safe-ssl'.

Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Dec 14, 2023
1 parent 1c6b31a commit 8fc2f89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -6197,7 +6197,7 @@ case "$cmd" in
require_pki=1
case "$cmd" in
gen-req|gen-dh|build-ca|show-req| \
make-safe-ssl|export-p*|inline)
make-safe-ssl|export-p*|inline|write)
: # No change
;;
*)
Expand Down Expand Up @@ -6353,6 +6353,7 @@ case "$cmd" in
legacy)
# over-write NO
shift
verify_working_env
legacy_files "$@"
;;
legacy-hard)
Expand All @@ -6361,6 +6362,7 @@ case "$cmd" in
'legacy-hard' will OVER-WRITE all legacy files to default settings.
Legacy files: openssl-easyrsa.cnf and x509-types/ directory."
shift
verify_working_env
legacy_file_over_write=1
legacy_files "$@"
;;
Expand Down

0 comments on commit 8fc2f89

Please sign in to comment.