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=");'

In reply to Net::SSLeay on Ubuntu 18.04 with custom OpenSSL version by cavac

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.