The OpenBSD has started with a fork of OpenSSL - named LibreSSL (due to security issues that were troubling OpenSSL).
Please let me share with you the problem I experienced and how to fix it.
When using easyrsa (EasyRsa-v3.0.0-rc2) it shows an error:
Code: Select all
Easy-RSA error:
Missing or invalid OpenSSL
Expected to find openssl command at: openssl
Code: Select all
openssl version
LibreSSL 2.0
After changing the easyrsa file - it works fine.
Below I show a diff - showing the change I did to make it work.
Code: Select all
--- easyrsa.old Sun Jul 27 14:30:49 2014
+++ easyrsa Mon Nov 17 16:19:23 2014
@@ -288,7 +288,7 @@
# Verify EASYRSA_OPENSSL command gives expected output
if [ -z "$EASYRSA_SSL_OK" ]; then
local val="$("$EASYRSA_OPENSSL" version)"
- [ "${val%% *}" = "OpenSSL" ] || die "\
+ [ "${val%% *}" = "OpenSSL" -o "${val%% *}" = "LibreSSL" ] || die "\
Missing or invalid OpenSSL
Expected to find openssl command at: $EASYRSA_OPENSSL"
fi
Code: Select all
cp -p easyrsa easyrsa.old
cat easyrsa.old | perl -pe 's/(\[)( "\$\{val.. \*\}" = ")(OpenSSL)(")( ] \|\| die)/$1$2$3$4 -o $2LibreSSL$4$5/' > easyrsa;
d