vpalli has asked for the wisdom of the Perl Monks concerning the following question:

Used 3 versions of perl 5.34,5.24 and 5.12 as well, facing SSL negotiation failed in all the 3 versions. Can you please suggest me how to resolve this issue and how can we specify the TLS version (TLS 1.2 ) in perl script.

  • Comment on How can I specify TLS Version in Perl Script

Replies are listed 'Best First'.
Re: How can I specify TLS Version in Perl Script
by hippo (Archbishop) on Mar 15, 2022 at 15:51 UTC

    I would normally use the SSL_version option in the IO::Socket::SSL constructor.


    🦛

Re: How can I specify TLS Version in Perl Script
by marto (Cardinal) on Mar 15, 2022 at 15:42 UTC

    You don't say which module (and version) you're using, I suspect this needs to be built against an up to date OpenSSL. Showing an example of what fails will help in resolving the problem How do I post a question effectively?.

      I have used openssl 1.1.1 and 3.0.1 versions, facing the same ssl certification error in both of them against all 3 different versions of perl