Mailinglist Archive: opensuse-bugs (8956 mails)

< Previous Next >
[Bug 211537] LWP (libwww) lacks support for HTTPS ("Can't locate Net/SSL.pm")
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 27 Oct 2006 09:31:06 -0600 (MDT)
  • Message-id: <20061027153106.BD4E0F20@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=211537





------- Comment #8 from mc@xxxxxxxxxx 2006-10-27 09:31 MST -------
Should work with IO::Socket::SSL

Ulrich have you tried this:

use LWP::UserAgent;
require IO::Socket::SSL;
require Net::HTTPS;

#use LWP::Debug qw(+);
#$ENV{'HTTPS_DEBUG'} = 1;
#$IO::Socket::SSL::DEBUG = 1;

push(@LWP::Protocol::http::EXTRA_SOCK_OPTS, 'SSL_ca_path', $CA_PATH);
push(@LWP::Protocol::http::EXTRA_SOCK_OPTS, 'SSL_ca_file', undef);
push(@LWP::Protocol::http::EXTRA_SOCK_OPTS, 'SSL_verify_mode', 0x01 | 0x02 |
0x04);
push(@LWP::Protocol::http::EXTRA_SOCK_OPTS, 'SSL_error_trap', \&ssl_error);

sub ssl_error
{
my $sock = shift;
my $errstr = shift;
$sock->close();
print STDERR "$errstr\n";
}
...


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >
References