cavac has asked for the wisdom of the Perl Monks concerning the following question:
I like to try out TLS 1.3. Unfortunately, as these things go, my Ubuntu 18.04 LTS comes only with the last OpenSSL version that doesn't support the new TLS version.
I'm a bit bamboozled on how to get Net::SSLeay working with my custom version.
I built the latest OpenSSL (1.1.1a) and installed it in my user home:
$ tar xvzf openssl-1.1.1a.tar.gz $ cd openssl-1.1.1a/ $ ./config --prefix=/home/cavac/bin/openssl $ make -j24 $ make test $ make install
So far, it all worked out nicely. But i can't get Net::SSLeay to build:
$ cpan cpan shell -- CPAN exploration and modules installation (v2.20) Enter 'h' for help. cpan[1]> look Net::SSLeay + + + Database was generated on Tue, 27 Nov 2018 12:17:03 GMT Running look for module 'Net::SSLeay' Trying to open a subshell in the build directory... Checksum for /home/cavac/.cpan/sources/authors/id/M/MI/MIKEM/Net-SSLea +y-1.85.tar.gz ok Working directory is /home/cavac/.cpan/build/Net-SSLeay-1.85-2 cavac@cables:~/.cpan/build/Net-SSLeay-1.85-2$ OPENSSL_PREFIX=/home/cav +ac/bin/openssl perl Makefile.PL /home/cavac/bin/openssl/bin/openssl: /usr/lib/x86_64-linux-gnu/libssl. +so.1.1: version `OPENSSL_1_1_1' not found (required by /home/cavac/bi +n/openssl/bin/openssl) /home/cavac/bin/openssl/bin/openssl: /usr/lib/x86_64-linux-gnu/libcryp +to.so.1.1: version `OPENSSL_1_1_1' not found (required by /home/cavac +/bin/openssl/bin/openssl) *** OpenSSL version test failed (`' has been returned) Either you have bogus OpenSSL or a new version has changed the ver +sion number format. Please inform the authors!
Do i need to set some extra LD_LIBRARY_PATH or something? What about during runtime of my scripts, do i also need to set the environment variables or does Net::SSLeay remember?
I certainly want to make sure that only my local (self compiled) version of Perl uses this version of OpenSSL. I don't want to break other programs installed on the system.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Net::SSLeay on Ubuntu 18.04 with custom OpenSSL version
by marto (Cardinal) on Nov 27, 2018 at 14:31 UTC | |
by cavac (Parson) on Nov 27, 2018 at 15:18 UTC | |
by marto (Cardinal) on Nov 27, 2018 at 15:52 UTC | |
by Anonymous Monk on Dec 01, 2018 at 01:33 UTC |