New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

OpenVPN/OpenSSL latest version on B3

Got problems with your B2 or B3? Share and get helped!
Post Reply
watashiwawa
Posts: 2
Joined: 09 Jul 2015, 12:25

OpenVPN/OpenSSL latest version on B3

Post by watashiwawa »

Hi!

My first post on this forum, but been playing around with my B3 for some time now.
Currently using my B3 primarily as an OpenVPN client. Everything working just fine, but ran into som trouble updating OpenSSL.

Compiled latest OpenVPN/OpenSSL, but having trouble getting OpenVPN to use the correct version of OpenSSL (latest 1.0.2d), it insists on using the preinstalled older version ( 0.9.8o).

OpenSSL compiled with configuration option:

Code: Select all

./config --prefix=/opt/custom-openssl
OpenVPN compiled with configuration options:

Code: Select all

./configure 
--prefix=/opt/custom-openvpn 
--enable-password-save 
OPENSSL_SSL_LIBS="-L/opt/custom-openssl/ -lssl" 
OPENSSL_SSL_CFLAGS="-I/opt/custom-openssl/include/" 
OPENSSL_CRYPTO_LIBS="-L/opt/custom-openssl/ -lcrypto" 
OPENSSL_CRYPTO_CFLAGS="-I/opt/custom-openssl/include/" 
Compilation goes OK, but still wrong version:

Code: Select all

root@b3:/opt/custom-openvpn/sbin# ./openvpn --version
OpenVPN 2.3.7 armv5tel-unknown-linux-gnueabi [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6]
library versions: OpenSSL 0.9.8o 01 Jun 2010, LZO 2.09
Any ideas? Missing configuration options?
Gordon
Posts: 1461
Joined: 10 Aug 2011, 03:18

Re: OpenVPN/OpenSSL latest version on B3

Post by Gordon »

I don't think openssl is actually linked into the openvpn binary, i.e. at runtime it will use LD_LIBRARY_PATH to find the corresponding .so files. You should set this path accordingly prior to starting openvpn.
watashiwawa
Posts: 2
Joined: 09 Jul 2015, 12:25

Re: OpenVPN/OpenSSL latest version on B3

Post by watashiwawa »

Thanks for pointing me me out in the right direction!

Adding:

Code: Select all

 
LDFLAGS="-L/opt/custom-openssl/lib/"
during config did the trick!
Post Reply