perl script error using Crypt::SSLeay with perl"s LWP
am 12.12.2006 18:55:36 von Funk.M------_=_NextPart_001_01C71E16.BA675420
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Folks,
I have a Perl script that uses LWP and connects to a web page via 443
SSL for availability
=20
All of the sudden the script stopped working and of course I didn't =
change
anything.
The web guys told me they renewed the certificate. Could that be the =
reason it
is now failing?
=20
I get a "Dr. Watson" like error now complaining about SSLEAY
=20
Any way for me to make this work with the new cert?
Do I need to import the new cert and get rid of the old one? If so =
how?
=20
Script snippet:
$ua =3D LWP::UserAgent->new;
$ua->agent("" . $ua->agent);
$ua->cookie_jar(HTTP::Cookies->new(file =3D> =
"lwpcookies.txt",autosave =3D> 1));
print "Checking $url/login.jsp......" if $dbug;
push @TSLOG, "Checking $url/login.jsp......";
$req =3D HTTP::Request->new(GET =3D> "$url/login.jsp");
$req->authorization_basic($pnuname, $pnpass);
@step1 =3D $ua->request($req)->as_string;
print "Step1-->$step1[0]\n\n" if $dbug;
if ($step1[0] =3D~ /
push @TSLOG, "Success\n";
$CURRSTAT{$url} =3D "U";
} else {
print "Failed\n" if $dbug;
push @TSLOG, "Failed\n";
$CURRSTAT{$url} =3D "D";
return;
}
=20
Ouput now...
LWP::UserAgent::request: ()
HTTP::Cookies::add_cookie_header: Checking placenet.xxx.com for cookies
HTTP::Cookies::add_cookie_header: Checking .xxx.com for cookies
HTTP::Cookies::add_cookie_header: Checking xxx.com for cookies
HTTP::Cookies::add_cookie_header: Checking .com for cookies
LWP::UserAgent::send_request: GET
https://placenet.xxx.com:443/sjprdcell/steppingstone/login.j sp
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
=20
The information contained in this e-mail may be confidential and is =
intended solely for the use of the named addressee.
Access, copying or re-use of the e-mail or any information contained =
therein by any other person is not authorized.
If you are not the intended recipient please notify us immediately by =
returning the e-mail to the originator.(17b)
------_=_NextPart_001_01C71E16.BA675420--