From 8c2a09f374794df9e5864a9313ab25c28d857265 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Fri, 25 Mar 2022 15:49:04 +0000 Subject: [PATCH] Expand new verify_ssl_lib() to support LibreSSL version 2.x (again) Changes made by a0dbc346bd92088ee481f5488ac53a7537b32073 result in 'ossl_major=2' and LibreSSL 2.x not being recognised. Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 8b72cbd..12f8376 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -464,6 +464,7 @@ verify_ssl_lib () { osslv_major="${osslv_major%%.*}" case "$osslv_major" in 1) no_password='-nodes' ;; + 2) no_password='-nodes' ;; # LibreSSL Only 3) no_password='-noenc' ;; *) die "Unsupported SSL library: $osslv_major" esac @@ -735,8 +736,8 @@ current CA keypair. If you intended to start a new CA, run init-pki first." ;; # END SSL V3 - # BEGIN SSL V1 - 1) + # BEGIN SSL V1 - Includes LibreSSL 2.x + 1|2) # If encrypted then create the CA key using AES256 cipher ($crypto) crypto_opts="" if [ ! $nopass ]; then