From e68a41c50f3a483fb1977a595f91761c0fd1831d Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sat, 6 May 2023 15:39:45 +0100 Subject: [PATCH] vars_setup(): Always assign EASYRSA_KEY_SIZE EASYRSA_KEY_SIZE is present in the SSL config file, therefore, it MUST always be set, regardless of EASYRSA_ALGO in use. Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 6335339..ff8f055 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -5195,10 +5195,14 @@ One or more of these problems has been found in your 'vars' file: set_var EASYRSA_REQ_OU "My Organizational Unit" set_var EASYRSA_REQ_SERIAL "" set_var EASYRSA_ALGO rsa + set_var EASYRSA_KEY_SIZE 2048 case "$EASYRSA_ALGO" in rsa) - set_var EASYRSA_KEY_SIZE 2048 + : # ok + # default EASYRSA_KEY_SIZE must always be set + # it must NOT be set selectively because it is + # present in the SSL config file ;; ec) set_var EASYRSA_CURVE secp384r1