Posted on 2009-06-30 14:35:25-07 by yishaib
IO::Socket::INET configuration failed
I'm trying to run this code:
$SERVER = $class->new( Proto => 'tcp', LocalPort => $PORT, Listen => 5, Reuse => 1, SSL_cert_file => "foo.pem", SSL_key_file => "bar.pem" ); die "Can't setup server. I encountered a problem: ".IO::Socket::SSL::errstr() unless $SERVER;
But I get this output:
Can't setup server. I encountered a problem: IO::Socket::INET configuration failederror:00000000:li +b(0):func(0):reason(0)

I am running perl 5.8.8, IO:Socket:SSL ver 1.0.8.
The thing is that the same code exactly works fine on some PCs, but on others I get that error message.
Does anyone have an explanation/solution for this? Thanks!
Direct Responses: 11093 | Write a response
Posted on 2009-06-30 15:26:02-07 by noxxi in response to 11092
Re: IO::Socket::INET configuration failed
I cannot really tell from the info you provide what the problem ist. What is the difference between the platforms you run the stuff on, like - different versions of perl, IO::Socket::SSL, openssl, Net::SSLeay installed - the certificates you use differ - the certificates reside in other directories or you start the script in other directories (so that it cannot find the certificate) And then, Version 1.08 is quiet old (about 2 years) and in the meantime there were lots of bugfixes and added features.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.