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.
perl -e 'use MIME::Base64; print decode_base64("4pmsIE5ldmVyIGdvbm5hIGdpdmUgeW91IHVwCiAgTmV2ZXIgZ29ubmEgbGV0IHlvdSBkb3duLi4uIOKZqwo=");'
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.