From 0149387425dd350cf2b87525eab020c3f925b323 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Wed, 5 Jun 2024 12:55:55 +0100 Subject: [PATCH] Set $ssl_cnf_type during verify_ssl_lib() Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index d2fa32bbe..133cdecac 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1259,9 +1259,11 @@ verify_ssl_lib() { case "${val%% *}" in OpenSSL) ssl_lib=openssl + ssl_cnf_type=ssl-cnf ;; LibreSSL) ssl_lib=libressl + ssl_cnf_type=safe-cnf ;; *) error_msg="$("$EASYRSA_OPENSSL" version 2>&1)" @@ -4550,11 +4552,6 @@ f97425686fa1976d436fa31f550641aa" easyrsa_mktemp ssl_cnf_tmp || die "\ write_easyrsa_ssl_cnf_tmp - easyrsa_mktemp" - # Choose SSL Conf type: - # OpenSSL=Unexpended, LibreSSL=Expanded (Safe) - ssl_cnf_type=ssl-cnf - [ "$ssl_lib" = openssl ] || ssl_cnf_type=safe-cnf - # Write SSL cnf to temp-file write "$ssl_cnf_type" > "$ssl_cnf_tmp" || die "\ write_easyrsa_ssl_cnf_tmp - write $ssl_cnf_type: $ssl_cnf_tmp"