-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Libressl, Expected to find openssl command at: openssl #74
Comments
I'm having the same issue with OpenBSD 5.8 and Libre 2.2.2 |
There has been no testing with LibreSSL at this time. I'm certainly open to feed back and bug testing, however. |
Easy-rsa works with LibreSSL for me on OpenBSD 5.8. However one has to hard-code info into openssl.cnf as $ENV is not allowed to be passed to libressl. I just open another issue with that. |
EasyRSA has only been written to support OpenSSL at this point. Inclusion of another SSL library and set of utilities will be complicated and regression testing will be tough. Moving this to 4.x. Honestly, I don't see it happening unless someone else steps in. |
4.x? LibreSSL is going to be the default for a lot of distros. |
Can you cite sources? Eric
|
Same issue here on OpenBSD 6.0 |
Any updates on this thread? Im using OpenBSD 6.0 and the newest easy-rsa version from github, in the easy-rsa script I recognize, that LibreSSL is mentioned, but it still doesnt work. In other OpenBSD related threads they say its because the use of the $ENV variable is deprecated and should not be used...
For all interested in this topic: the pkg version of easy-rsa on OpenBSD 6.0 is working properly! |
See also #76 |
Hello,
I have not had a chance to look at this. Unfortunately, the person that wrote 3.0 isn’t active any longer and I’ll need to do a larger review. Hind sight is 20/20.
I’ll try to get to it soon.
Eric
… On Feb 21, 2017, at 07:35:30, Randolf Kevin Meier ***@***.***> wrote:
See also #76 <#76>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub <#74 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABt4P_ToLfDIy5sogai2wIUWpassjf8Uks5reugigaJpZM4F_ePA>.
|
+1 FreeBSD 11.1 :) |
+1 macOS high Sierra (10.13) #155 |
As a workaround for MacOS Sierra/High Sierra add to your ENV this:
|
@noizo Thank you for your reply. |
To make the fix of @noizo "permanent" create or edit the |
Same problem on OS X - I workarounded it by adding this to my vars file: # workaround for https://github.com/OpenVPN/easy-rsa/issues/74 libressl doesn't support passing in values via ENV
if [ ! -z $(brew --prefix) ] ; then
export EASYRSA_OPENSSL="$(brew list openssl|grep 'openssl$')"
fi To retain usability on multiple machines / platforms (not great, but at least it doesn't break immediately. |
Still getting errors on OSX High Sierra even with the EASYRSA_OPENSSL env var declared. The pki/extensions.temp file referred to in the error doesn't even exist.
Using easyrsa v3.0.4:
|
I removed the pki directory and ran it all again and got a different error:
|
Exactly the same think happened when I ran this on a raspberry pi (Raspbian GNU/Linux 9 (stretch))
|
Definitely a bug here - just tried on an O/S (14.04.3 LTS, Trusty Tahr) that I have used EasyRSA on in the past and it fails with the same error.
|
Problem is in the pki/extensions.temp file that is written during cert creation: Line 16 in that file:
The error pointed to a missing "=" sign. I tried adding this so it was like the other x509 declarations made in the same file but I got more errors:
I then initiated creating another server cert and before entering the CA signing password I deleted the line all-together in pki/extensions.temp and it issued the cert as expected. There is something wrong with the x509 default_server_san extension declaration. You can see also from the easyrsa help text that the string easyrsa is trying to add in the default_server_san field is nothing like what is expected:
|
If I specify --subject-alt-name during server cert creation the code seems to work (ie. adds the "=") but there is something with the x509 extension that fails:
|
So after wasting a whole afternoon on this I found the fix in a fork of this code: Tested and works. |
So none of the above worked for me. I had to modify vars and replace:
with
|
I'm also struggling to get easy-rsa to work on macOS 10.13.4 which is bundled with LibreSSL. The only problem is that /usr/local/Cellar/openssl/1.0.2l/bin/openssl doesn't seem to exist (nor does the folder /usr/local/Cellar on my machine, for that matter, running macOS 10.13.4). I even tried installing the latest version of OpenSSL, but that failed also. There's got to be a better, easier way to generate OpenVPN certs and keys. |
I’ll take a look at this. I do much of the latest development on OS X.
Eric Crist
… On May 15, 2018, at 9:18 PM, Brian Hall ***@***.***> wrote:
I'm also struggling to get easy-rsa to work on macOS 10.13.4 which is bundled with LibreSSL. The only problem is that /usr/local/Cellar/openssl/1.0.2l/bin/openssl doesn't seem to exist (nor does the folder /usr/local/Cellar on my machine, for that matter, running macOS 10.13.4). I even tried installing the latest version of OpenSSL, but that failed also. There's got to be a better, easier way to generate OpenVPN certs and keys.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
ericst, now that High Sierra has switched to Libre, and many Linux distress are apparently now doing the same, it has become critical that EasyRSA must have a way to support it. |
Merge branch 'TinCanTech-libressl' This may also resolve the following issues: #130: cmd-opts nopass doesn't work #76: LibreSSL exposes misuse of $ENV #74: LibreSSL, Expected to find openssl command at: openssl #34: unexpected EOF when using init-pki on OSX 10.9 Signed-off-by: Eric F Crist <[email protected]>
This should be resolved in 93b0f2e |
Merge branch 'TinCanTech-libressl' This may also resolve the following issues: OpenVPN#130: cmd-opts nopass doesn't work OpenVPN#76: LibreSSL exposes misuse of $ENV OpenVPN#74: LibreSSL, Expected to find openssl command at: openssl OpenVPN#34: unexpected EOF when using init-pki on OSX 10.9 Signed-off-by: Eric F Crist <[email protected]>
I am trying to get easy-rsa3 to work with libressl on gentoo
openssl version
LibreSSL 2.2.3
./easyrsa init-pki
...
"$EASYRSA_OPENSSL" version
++ openssl version
1385875132:error:0E065068:configuration file routines:STR_COPY:variable has no value:/var/tmp/portage/dev-libs/libressl-2.2.3/work/libressl-2.2.3/crypto/conf/conf_def.c:573:line 3
Expected to find openssl command at: openssl'
Changing EASYRSA_OPENSSL to /usr/bin/openssl produces the same error.
The text was updated successfully, but these errors were encountered: