From 91557aca7d435b4df943250acefb24f08232bbbe Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Fri, 15 Nov 2024 20:15:24 +0000 Subject: [PATCH] Integrate easyrsa-tools.lib:'renew ca' into command selection Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 340f5ebe..3ceadfc4 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -6011,13 +6011,19 @@ case "$cmd" in verify_working_env show_host "$@" ;; - renew|show-expire|show-revoke|show-renew|verify-cert) + renew*|show-expire|show-revoke|show-renew|verify-cert) verify_working_env # easyrsa-tools.lib is required source_easyrsa_tools_lib || tools_error=1 case "$cmd" in + renew-ca) + [ "$tools_error" ] && user_error "$tools_error_txt" + [ -z "$alias_days" ] || \ + export EASYRSA_CA_EXPIRE="$alias_days" + renew_ca_cert "$@" + ;; renew) [ "$tools_error" ] && user_error "$tools_error_txt