IO::Socket::INET configuration failed
am 17.11.2007 09:04:24 von Janwillem Borleffs
Hi,
I'm encountering a problem with the IO::Socket::SSL package. When I execute
the following code in a mod_perl2 environment, I get a 'IO::Socket::INET
configuration failed' error:
my $socket = IO::Socket::SSL->new('host:port');
This works fine in a mod_perl 1 environment and from the command line. The
latest IO::Socket::SSL version I tried is 0.97 & the latest IO::Socket::INET
version 1.29 (tried other versions of both packages too).
Increasing debugging levels didn't provide more information nor did a search
on Google.
Do you know how to solve the problem?
Cheers,
JW
Re: IO::Socket::INET configuration failed
am 18.11.2007 00:00:05 von Janwillem Borleffs
Janwillem Borleffs wrote:
> I'm encountering a problem with the IO::Socket::SSL package. When I
> execute the following code in a mod_perl2 environment, I get a
> 'IO::Socket::INET configuration failed' error:
>
After some extended debugging, I encountered the following message:
IO::Socket::SSL SSL23_CLIENT_HELLO:no ciphers available
The message was shown from the following line of code:
my $socket = IO::Socket::SSL->new('host:port') or die $@;
Again, running the script from the command line did not result in any error
message.
Looking at the openssl configuration, ciphers *are* available. To ensure
that both mod_perl & command line use the same openssl version, I changed
the one under /apache2 to a symlink to the /usr/local/ssl distribution
(which I assume is used when running the succeeding command line script).
Regards,
JW