I am working on perl script that connects to server that supports TLSv1.2. At present I am not able to connect because perl is running on CentOS 5.4 with OpenSSL version 0.9.8e. I don't want to upgrade perl because it might break the script since there have been changes and latest version of perl is 5.26 which is way too latest. Now, I can run the script on different Windows box with no problems that is using perl 5.24. my question, can I use openssl 1.0.1 on CentOS 5.x and recompile perl modules and be still able to connect to TLV1.2? I have already installed modules mentioned in LWP::UserAgent and 500 SSL negotiation failed except openssl. I also followed https://miteshshah.github.io/linux/centos/how-to-enable-openssl-1-0-2-a-tlsv1-1-and-tlsv1-2-on-centos-5-and-rhel5/ to install openssl but when I do openssl version I still see the original version i.e. 0.9.9e.
In the above link it mentioned to use CPAN to update/install perl modules. Instead of that I got the rpm for perl modules and installed.
LWP on server is 5.834.
I know ideal way would be to go for CentOS 6 or later but is there a better approach to get this working?