I'm porting a working Unix Perl program to Windows, and for some reason I'm having trouble getting IO::Socket::SSL to work. I don't seem to be able to create sockets with it at all. I'm testing with this one-liner:
perl -MIO::Socket::SSL=debug4 -e "$sock=IO::Socket::SSL->new('whereabouts.eecs.umich.edu:443') or die IO::Socket::SSL::errstr"
with this result:
CA file certs/my-ca.pem not found, using CA path instead. IO::Socket::INET configuration failederror:00000000:lib(0):func(0):rea +son(0) at -e line 1 IO::Socket::INET configuration failederror:00000000:lib(0):func(0):rea +son(0) at -e line 1.

The failure seems to happen when something tries to turn blocking on, which ends up in IO::Socket::INET::configure, which calls the blocking method on the socket, which fails.

I'm running on Windows 2000, with ActiveState Perl 5.8.8.817, with Net::SSLeay 1.30 and IO::Socket::SSL 0.999, both from http://cpan.uwinnipeg.ca/dist/

Does this module work for other people on Windows? Is there anything obvious I'm doing wrong? Any advice for troubleshooting and fixing this?

Thanks!

Update: Fix Net::SSLeay version number; not sure what file I got it from before...


In reply to Trouble with IO::Socket::SSL on Windows by sgifford

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.