Why is in documentation of IO::Socket::SSL that I can set SSL_version to SSLv3 and when I do so, I get error that this version is not supported?

As you have provided neither an SSCCE nor the version of IO::Socket::SSL which you are using it's pretty much impossible to say. Here's a counterexample though:

#!/usr/bin/env perl use strict; use warnings; use IO::Socket::SSL; print "IO::Socket::SSL version $IO::Socket::SSL::VERSION\n"; for my $proto ('SSLv3', 'TLSv1_2') { my $ssl = IO::Socket::SSL->new ( PeerHost => 'perlmonks.pairsite.com', PeerPort => 443, SSL_version => $proto ); print "SSL connection with $proto " . ($ssl ? 'set up' : 'failed') . "\n"; }

Which when run by me produces:

IO::Socket::SSL version 2.012 SSL connection with SSLv3 failed SSL connection with TLSv1_2 set up

Try it and see how you get on. Note that the results of this help to illustrate that no secure site is going to support SSLv3 these days anyway so the purpose of specifying it in the first place is a little suspect.


In reply to Re: LWP::UserAgent Client certificate authentication by hippo
in thread LWP::UserAgent Client certificate authentication by Anonymous Monk

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.