From 5c1ca9543dadfd8b209337bb89d535a29280c448 Mon Sep 17 00:00:00 2001 From: Josh Cepek Date: Mon, 24 Nov 2014 18:27:37 -0600 Subject: [PATCH] Support LibreSSL by its version output The command-line API for LibreSSL is currently identical to OpenSSL 1.0.1. This support is implemented in a case so any future version distinctions can key off the features in the available implementation. Such feature-specific support may become more important during the 3.1 development cycle where 0.9.x OpenSSL cannot handle newer features. Signed-off-by: Josh Cepek Fixes: #48 --- easyrsa3/easyrsa | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 118840b..c78647e 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -288,9 +288,12 @@ EASYRSA_PKI env-var undefined" # Verify EASYRSA_OPENSSL command gives expected output if [ -z "$EASYRSA_SSL_OK" ]; then local val="$("$EASYRSA_OPENSSL" version)" - [ "${val%% *}" = "OpenSSL" ] || die "\ + case "${val%% *}" in + OpenSSL|LibreSSL) ;; + *) die "\ Missing or invalid OpenSSL Expected to find openssl command at: $EASYRSA_OPENSSL" + esac fi EASYRSA_SSL_OK=1