From 287b951aa7817b2b20c2814ac05e9ce31eaf3399 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Fri, 3 May 2024 18:43:01 +0100 Subject: [PATCH] self-sign: Use global option --days Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 805de17b2..43936e333 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -5409,10 +5409,14 @@ case "$cmd" in ;; self-sign-server) verify_working_env + [ -z "$alias_days" ] || \ + export EASYRSA_CERT_EXPIRE="$alias_days" build_self_sign server "$@" ;; self-sign-client) verify_working_env + [ -z "$alias_days" ] || \ + export EASYRSA_CERT_EXPIRE="$alias_days" build_self_sign client "$@" ;; gen-dh)