Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

How can I specify TLS Version in Perl Script

by vpalli (Initiate)
on Mar 15, 2022 at 15:38 UTC ( [id://11142120]=perlquestion: print w/replies, xml ) Need Help??

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.

Replies are listed 'Best First'.
Re: How can I specify TLS Version in Perl Script
by hippo (Bishop) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11142120]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-03-28 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found