Skip to content

Commit

Permalink
Remove 'rebuild' command interface and help only
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Dec 7, 2023
1 parent eca1899 commit 0cc41a7
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ A list of commands is shown below:
renew <file_name_base>
revoke-renewed <file_name_base> [ cmd-opts ]
rewind-renew <certificate_serial_number>
rebuild <file_name_base> [ cmd-opts ]
gen-crl
update-db
show-req <file_name_base> [ cmd-opts ]
Expand Down Expand Up @@ -218,16 +217,6 @@ cmd_help() {
cessationOfOperation
certificateHold"
;;
rebuild)
text="
* rebuild <file_name_base> [ cmd-opts ]

Rebuild a certificate and key specified by <file_name_base>"

opts="
* nopass - Do not encrypt the private key (Default: encrypted)
(Equivalent to global option '--nopass|--no-pass')"
;;
renew)
text="
* renew <file_name_base>
Expand Down Expand Up @@ -5510,7 +5499,7 @@ Use of --startdate requires use of --enddate."
# --enddate may over-rule EASYRSA_CERT_EXPIRE
if [ "$EASYRSA_END_DATE" ]; then
case "$cmd" in
sign-req|build-*-full|renew|rebuild)
sign-req|build-*-full|renew)
# User specified alias_days IS over-ruled
if [ "$alias_days" ]; then
warn "\
Expand Down Expand Up @@ -7254,12 +7243,6 @@ case "$cmd" in
verify_working_env
rewind_renew "$@"
;;
rebuild)
verify_working_env
[ -z "$alias_days" ] || \
export EASYRSA_CERT_EXPIRE="$alias_days"
rebuild "$@"
;;
import-req)
verify_working_env
import_req "$@"
Expand Down

0 comments on commit 0cc41a7

Please sign in to comment.