OpenVPN itself works under HardenedBSD. You're trying to get the
easy-rsa scripts working. easy-rsa is separate from (but related to)
OpenVPN. The easy-rsa scripts are incompatible with LibreSSL.
The easy-rsa scripts are incompatible with LibreSSL because the LibreSSL
developers stripped out the ability to pass in data via environment
variables. easy-rsa relies on setting environment variables to tell
the openssl application certain pieces of info.
Either you'll need to modify the easy-rsa scripts (like I've done on my
system) or you'll need to do the certificate generation yourself. Either
solution isn't difficult to do.
Thanks,
Shawn
On Mon, Sep 25, 2017 at 06:54:00AM +0000, bryn1u85 . wrote:
> Hello,
>
> I have build easy-rsa from ports and im getting still the same issue:
>
> [root@proton /usr/local/etc/openvpn]# ./easyrsa init-pki
>
> Note: using Easy-RSA configuration from: ./vars
> 5178087257608:error:0EFFF068:configuration file
> routines:CRYPTO_internal:variable
> has no value:/usr/src/crypto/libressl/crypto/conf/conf_def.c:563:line 3
>
> Easy-RSA error:
>
> Missing or invalid OpenSSL
> Expected to find openssl command at: openssl
> [root@proton /usr/local/etc/openvpn]#
>
> I have put to make.conf those options:
>
> [root@proton /usr/local/etc/openvpn]# cat /etc/make.conf
>
> WITH_SSP_PORTS=YES
> SSP_CFLAGS=-fstack-protector-all
> SSP_CXXFLAGS=-fstack-protector-all
> DEFAULT_VERSIONS+= php=7.1
> DEFAULT_VERSIONS+=ssl=libressl
>
> And it still doesn't matter. Is there any way to install openvpn under
> HardenedBSD ?
>
> 2017-09-25 7:28 GMT+02:00 Franco Fichtner <
franco....@hardenedbsd.org>:
>
> > Hi,
> >
> > > On 25. Sep 2017, at 1:35 AM, bryn1u <
m.br...@gmail.com> wrote:
> > >
> > > Note: using Easy-RSA configuration from: ./vars
> > > 3884271625736:error:0EFFF068:configuration file
> > routines:CRYPTO_internal:variable has no value:/usr/src/crypto/libressl
> > /crypto/conf/conf_def.c:563:line 3
> > >
> > > Easy-RSA error:
> > >
> > > Missing or invalid OpenSSL
> > > Expected to find openssl command at: openssl
> >
> > Try to forcefully install the latest package:
> >
> > # pkg install -f easy-rsa
> >
> > If this helps and you normally build from ports you have an unclean
> > build environment. It's likely related to the 11-STABLE transition.
> >
> >
> > Cheers,
> > Franco
> >
--
Shawn Webb
Cofounder and Security Engineer
HardenedBSD
GPG Key ID: 0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE