RE: Desperate for help with Crypt::SSLeay SSL

RE: Desperate for help with Crypt::SSLeay SSL

am 26.01.2007 19:30:02 von RDuz

------_=_NextPart_001_01C74177.FE5F171D
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Here is how I do it:
=20
#!/usr/bin/perl -w
use strict;
=20
use WWW::Mechanize;
require IO::Socket::SSL;
=20
my $mech =3D WWW::Mechanize->new();
$mech->get('https://www.amazon.com');
=20
=20

Regards,

Rich Duzenbury
IT Department
Brokers International, Ltd.
1200 E. Main
Panora, IA 50216
(800) 362-1097 ext 1401


=20


________________________________

From: Tran, Stephanie [mailto:Stephanie.Tran@lfg.com]=20
Sent: Thursday, January 25, 2007 10:29 PM
To: libwww@perl.org
Subject: Desperate for help with Crypt::SSLeay SSL
=09
=09
First, I am not a Perl programmer or very familiar with the AIX
operating system. I have been asked to develop a Web Service Client to
send a request to a Websphere Java Web Service provider. The Web Service

provider is SSL. I have attached my code. I have also included
the versions of libraries that our server team has installed for me at
the bottom of this email. I performed a perl -V so that you can see our
perl settings. I am receiving the following error:
=20
Any help would be deeply appreciated.=20
=20
=09
------------------------------------------------------------ ------------
--------------------------------------------------
perl -W ssl011407t1.pl
Subroutine SOAP::Trace::transport redefined at
/usr/opt/perl5/lib/site_perl/5.8.
0/SOAP/Lite.pm line 2650.
Subroutine SOAP::Trace::dispatch redefined at
/usr/opt/perl5/lib/site_perl/5.8.0
/SOAP/Lite.pm line 2650.
Subroutine SOAP::Trace::result redefined at
/usr/opt/perl5/lib/site_perl/5.8.0/S
OAP/Lite.pm line 2650.
Subroutine SOAP::Trace::parameters redefined at
/usr/opt/perl5/lib/site_perl/5.8
.0/SOAP/Lite.pm line 2650.
Subroutine SOAP::Trace::headers redefined at
/usr/opt/perl5/lib/site_perl/5.8.0/
SOAP/Lite.pm line 2650.
Subroutine SOAP::Trace::objects redefined at
/usr/opt/perl5/lib/site_perl/5.8.0/
SOAP/Lite.pm line 2650.
Subroutine SOAP::Trace::method redefined at
/usr/opt/perl5/lib/site_perl/5.8.0/S
OAP/Lite.pm line 2650.
Subroutine SOAP::Trace::fault redefined at
/usr/opt/perl5/lib/site_perl/5.8.0/SO
AP/Lite.pm line 2650.
Subroutine SOAP::Trace::freeform redefined at
/usr/opt/perl5/lib/site_perl/5.8.0
/SOAP/Lite.pm line 2650.
Subroutine SOAP::Trace::trace redefined at
/usr/opt/perl5/lib/site_perl/5.8.0/SO
AP/Lite.pm line 2650.
Subroutine SOAP::Trace::debug redefined at
/usr/opt/perl5/lib/site_perl/5.8.0/SO
AP/Lite.pm line 2650.
SOAP::Data::new: ()
SOAP::Transport::new: ()
SOAP::Serializer::new: ()
SOAP::Deserializer::new: ()
SOAP::Parser::new: ()
SOAP::Lite::new: ()
Subroutine LWP::UserAgent::redirect_ok redefined at
/usr/opt/perl5/lib/site_perl/5.8.0/SOAP/Transport/HTTP.pm line 40.
Subroutine LWP::Protocol::collect redefined at
/usr/opt/perl5/lib/site_perl/5.8.0/SOAP/Transport/HTTP.pm line 50.
Subroutine SOAP::Transport::HTTP::Client::patch redefined at
/usr/opt/perl5/lib/site_perl/5.8.0/SOAP/Transport/HTTP.pm line 52.
SOAP::Transport::HTTP::Client::new: ()
SOAP::Data::new: ()
SOAP::Lite::call: ()
SOAP::Serializer::envelope: ()
SOAP::Serializer::envelope: SOAP::Data=3DHASH(0x203e9b4c)
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Transport::HTTP::Client::send_receive:
HTTP::Request=3DHASH(0x202d5360)
SOAP::Transport::HTTP::Client::send_receive: POST
https://IBM-SOZGIG1GH90.us.ad.lfg.com/ssl/services/sslSOAP HTTP/1.1
Accept: text/xml
Accept: multipart/*
Accept: application/soap
Content-Length: 402
Content-Type: text/xml; charset=3Dutf-8
SOAPAction: "https://ssl.com:9443/ssl/NewOperation"
=20
xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xmlns:x
sd=3D"http://www.w3.org/2001/XMLSchema"
xmlns:tns=3D"https://ssl.com:9443/ssl/"
xmlns:soap=3D"http://schemas.xmlsoap.org/soap/envelope/"> p
erationReque
st xmlns=3D"https://ssl.com:9443/ssl/" xsi:nil=3D"true"
/>

SOAP::Transport::HTTP::Client::send_receive:
HTTP::Response=3DHASH(0x2050d18c)
SOAP::Transport::HTTP::Client::send_receive: 501 Protocol scheme
'https' is notsupported (Crypt::SSLeay not installed)
Content-Type: text/plain
Client-Date: Fri, 26 Jan 2007 04:21:28 GMT
Client-Warning: Internal response
=20
LWP will support https URLs if the Crypt::SSLeay module is
installed.
More information at
.
SOAP::Transport::HTTP::Client::send_receive:
HTTP::Request=3DHASH(0x202d5360)
SOAP::Transport::HTTP::Client::send_receive: POST
https://IBM-SOZGIG1GH90.us.ad.lfg.com/ssl/services/sslSOAP HTTP/1.1
Accept: text/xml
Accept: multipart/*
Accept: application/soap
User-Agent: SOAP::Lite/Perl/0.68
Content-Length: 402
Content-Type: text/xml; charset=3Dutf-8
0828-SOAPAction: "https://ssl.com:9443/ssl/NewOperation"
Man: "http://schemas.xmlsoap.org/soap/envelope/"; ns=3D0828
SOAPAction: "https://ssl.com:9443/ssl/NewOperation"
=20
xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"
xmlns:tns=3D"https://ssl.com:9443/ssl/"
xmlns:soap=3D"http://schemas.xmlsoap.org/soap/envelope/"> p
erationRequest xmlns=3D"https://ssl.com:9443/ssl/" xsi:nil=3D"true"
/>

SOAP::Transport::HTTP::Client::send_receive:
HTTP::Response=3DHASH(0x20510b88)
SOAP::Transport::HTTP::Client::send_receive: 500 Can't locate
object method "new" via package "LWP::Protocol::https::Socket"
Content-Type: text/plain
Client-Date: Fri, 26 Jan 2007 04:21:28 GMT
Client-Warning: Internal response
=20
500 Can't locate object method "new" via package
"LWP::Protocol::https::Socket"
SOAP::Deserializer::deserialize: ()
SOAP::Parser::decode: ()
500 Can't locate object method "new" via package
"LWP::Protocol::https::Socket" at ssl011407t1.pl line 6
SOAP::Data::DESTROY: ()
SOAP::Data::DESTROY: ()
SOAP::Data::DESTROY: ()
SOAP::Lite::DESTROY: ()
SOAP::Deserializer::DESTROY: ()
SOAP::Parser::DESTROY: ()
SOAP::Transport::DESTROY: ()
SOAP::Transport::HTTP::Client::DESTROY: ()
SOAP::Serializer::DESTROY: ()
SOAP::Data::DESTROY: ()
SOAP::Data::DESTROY: ()
=20
=09
------------------------------------------------------------ ------------
------------------------------------------------------------ ------------
----------------------------------------------------------
This is libwww-perl-5.805
Class::Singleton -- 1.03
Compress::Raw::Zlib -- 2.003
Compress::Zlib -- 2.003
Crypt::OpenSSL::RSA -- 0.23
Crypt::OpenSSL::Random -- 0.03
Crypt::OpenSSL::X509 -- 0.3.1
Crypt::SSLeay -- 0.53
DateTime -- 0.35
DateTime::Format::Epoch -- 0.10
DateTime::Format::W3CDTF -- 0.04
DateTime::Locale -- 0.3101
DateTime::TimeZone -- 0.54
Digest -- 1.15
Digest::SHA1 -- 2.11
Digest::SHA::PurePerl -- 5.32
ExtUtils::CBuilder -- 0.18
ExtUtils::ParseXS -- 2.16
FCGI::Async -- 0.07
FCGI::ProcManager -- 0.17
HTTP::Daemon::SSL -- 1.02
IO -- 1.23
IO::Compress::Base -- 2.003
IO::Compress::Zlib -- ???
IO::Socket::SSL -- 1.01
IO::String -- 1.08
IO::Zlib -- 1.04
LWP -- 5.805
MIME-tools -- ???
MIME::Base64 -- 3.07
Mail -- ???
Module::Build -- 0.2805
Net -- ???
Params::Validate -- 0.86
Perl -- 5.8.0
Pod -- ???
Pod::Escapes -- 1.04
Pod::Simple -- 3.04
SOAP::Lite -- 0.68
Sys::Hostname::Long -- 1.4
URI -- 1.35
WSRF::Lite -- 0.6
XML-DOM -- ???
XML::CanonicalizeXML -- 0.03
XML::Parser -- 2.34
XML::RegExp -- 0.02
libxml-perl -- ???
=20
=20
=09
=09
------------------------------------------------------------ ------------
------------------------------------------------------------ ------------
----------------------------------------------------------
perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0)
configuration:
Platform:
osname=3Daix, osvers=3D5.2.0.0, archname=3Daix-thread-multi
uname=3D'aix rocky 2 5 000ad7df4c00 '
config_args=3D''
hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
usethreads=3Ddefine use5005threads=3Dundef useithreads=3Ddefine
usemultiplicity=3Ddefine
useperlio=3Ddefine d_sfio=3Dundef uselargefiles=3Ddefine
usesocks=3Dundef
use64bitint=3Dundef use64bitall=3Dundef uselongdouble=3Dundef
usemymalloc=3Dn, bincompat5005=3Dundef
Compiler:
cc=3D'cc_r', ccflags =3D'-D_ALL_SOURCE -D_ANSI_C_SOURCE
-D_POSIX_SOURCE -qmaxmem=3D16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong',
optimize=3D'-O',
cppflags=3D'-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=3D16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT'
ccversion=3D'', gccversion=3D'', gccosandvers=3D''
intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8,
byteorder=3D4321
d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine,
longdblsize=3D8
ivtype=3D'long', ivsize=3D4, nvtype=3D'double', nvsize=3D8,
Off_t=3D'off_t', lseeksize=3D8
alignbytes=3D8, prototype=3Ddefine
Linker and Libraries:
ld=3D'ld', ldflags =3D' -brtl -b32'
libpth=3D/lib /usr/lib /usr/ccs/lib
libs=3D-lbind -lnsl -ldbm -ldl -lld -lm -lpthreads -lc_r
-lcrypt -lbsd -lPW
perllibs=3D-lbind -lnsl -ldl -lld -lm -lpthreads -lc_r -lcrypt
-lbsd -lPW
libc=3D/lib/libc.a, so=3Da, useshrplib=3Dtrue, libperl=3Dlibperl.a
gnulibc_version=3D''
Dynamic Linking:
dlsrc=3Ddl_aix.xs, dlext=3Dso, d_dlsymun=3Dundef, ccdlflags=3D'
-bE:/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE/perl.exp'
cccdlflags=3D' ', lddlflags=3D'-bhalt:4 -bM:SRE
-bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry -lpthreads -lc_r'
=20
=09
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES PERL_IMPLICIT_
CONTEXT
Built under aix
Compiled at Jul 26 2002 13:48:15
@INC:
/usr/opt/perl5/lib/5.8.0/aix-thread-multi
/usr/opt/perl5/lib/5.8.0
/usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi
/usr/opt/perl5/lib/site_perl/5.8.0
/usr/opt/perl5/lib/site_perl
.
=20
Thank you,
Stephanie Tran=20
IBM I/T Specialist
stephanietran@us.ibm.com
stephanie.tran@lfg.com
Office: 260-455-0607
Mobile: 260-450-4271
=20
Notice of Confidentiality:
**This E-mail and any of its attachments may contain=20
Lincoln National Corporation proprietary information, which is
privileged,
confidential, or subject to copyright belonging to the=20
Lincoln National Corporation family of companies. This E-mail is
intended=20
solely for the use of the individual or entity to which it is
addressed.=20
If you are not the intended recipient of this E-mail, you are
hereby=20
notified that any dissemination, distribution, copying, or
action taken=20
in relation to the contents of and attachments to this E-mail is
strictly=20
prohibited and may be unlawful. If you have received this E-mail
in error,=20
please notify the sender immediately and permanently delete the
original=20
and any copy of this E-mail and any printout. Thank You.**


------_=_NextPart_001_01C74177.FE5F171D--