in reply to Re: Object is to be passed between different version of scripts
in thread Object is to be passed between different version of scripts

Just upgrading Net::SSLeay is enough or code change required? Is there any procedure to upgrade Net::SSLeay? detail explaination required to proceed futher.
  • Comment on Re^2: Object is to be passed between different version of scripts

Replies are listed 'Best First'.
Re^3: Object is to be passed between different version of scripts
by marto (Cardinal) on Apr 11, 2020 at 06:26 UTC

    You say you are using Perl 5.6, Net::SSLeay requires v5.8.1 as of v1.86_05, but supports TLS v1.2 as of release 1.59. Without knowing why you are stuck with a 20 year old perl calling a much more modern perl it's hard to understand why you simply just don't do everything with the modern version.

Re^3: Object is to be passed between different version of scripts
by jcb (Parson) on Apr 12, 2020 at 03:48 UTC

    Procedure to upgrade Net::SSLeay:

    1. Find versions of Net::SSLeay and OpenSSL that support perl-5.6 and TLS1.2 and each other. Use the latest version of OpenSSL that you can.
    2. Install upgraded OpenSSL where the build procedure for Net::SSLeay can find it.
    3. Unpack a new Net::SSLeay and run perl Makefile.PL && make && make test. If tests fail, try another nearby version of Net::SSLeay until you find one for which the tests pass. After your new Net::SSLeay has passed its tests, use make install to install it.
    4. Perl programs should now be able to use TLS1.2.

    Then get a migration path for moving the entire program to a modern perl interpreter planned, because there is probably no combination of Net::SSLeay and OpenSSL that provides TLS1.3 support in a perl-5.6 installation.