Am I certain I need Crypt::SSLeay? That is a good question. This come from
an old procedure that it was require for one or many module.
However, I haven't validated if it's still the case.
LWP is at 6.05
I'll investigate more on what I've found below
root@aix71tst ==> find /usr/local/perl/ -name "*.pm" -exec grep Crypt::SSL
{} \; -print
# Crypt::SSLeay (Net::SSL) by Gisle Aas.
/usr/local/perl/lib/site_perl/5.18.2/IO/Socket/SSL.pm
L<IO::Socket::SSL>, L<Crypt::SSLeay>, L<Mozilla::CA>
/usr/local/perl/lib/site_perl/5.18.2/LWP/Protocol/https.pm
# The processing of HTTPS_CA_* below is for compatibility with
Crypt::SSLeay
/usr/local/perl/lib/site_perl/5.18.2/LWP/UserAgent.pm
use Crypt::SSLeay;
/usr/local/perl/lib/site_perl/5.18.2/REST/Client.pm
package Crypt::SSLeay::CTX;
require Crypt::SSLeay;
/usr/local/perl/lib/site_perl/5.18.2/aix/Crypt/SSLeay/CTX.pm
package Crypt::SSLeay::Conn;
require Crypt::SSLeay;
/usr/local/perl/lib/site_perl/5.18.2/aix/Crypt/SSLeay/Conn.pm
package Crypt::SSLeay::Err;
require Crypt::SSLeay;
/usr/local/perl/lib/site_perl/5.18.2/aix/Crypt/SSLeay/Err.pm
package Crypt::SSLeay::MainContext;
# maintains a single instance of the Crypt::SSLeay::CTX class
require Crypt::SSLeay::CTX;
my $ctx = Crypt::SSLeay::CTX->new($ssl_version);
/usr/local/perl/lib/site_perl/5.18.2/aix/Crypt/SSLeay/MainContext.pm
package Crypt::SSLeay::X509;
/usr/local/perl/lib/site_perl/5.18.2/aix/Crypt/SSLeay/X509.pm
package Crypt::SSLeay;
XSLoader::load('Crypt::SSLeay', $VERSION);
bootstrap Crypt::SSLeay $VERSION;
use Crypt::SSLeay::X509;
sub Crypt::SSLeay::CTX::DESTROY { shift->free; }
sub Crypt::SSLeay::Conn::DESTROY { shift->free; }
sub Crypt::SSLeay::X509::DESTROY { shift->free; }
Crypt::SSLeay - OpenSSL support for LWP
The C<Crypt::SSLeay> package provides C<Net::SSL>, which is loaded
Crypt::SSLeay::CTX
Crypt::SSLeay::Conn
Crypt::SSLeay::X509
Work on Crypt::SSLeay has been continued only to provide https
C<Crypt::SSLeay> and C<Net::SSL> behave.
trying to build C<Crypt::SSLeay>.
issue the following commands to build C<Crypt::SSLeay>:
library package. The key is that C<Crypt::SSLeay> makes calls to the
OpenSSL
=head2 Crypt::SSLeay
The latest Crypt::SSLeay can be found at your nearest CPAN, as well as
Once you have downloaded it, C<Crypt::SSLeay> installs easily using the
dmake which can be used to build both OpenSSL and C<Crypt::SSLeay>. If you
C<Crypt::SSLeay> builds correctly with Strawberry Perl and ActiveState
Perl
This prevents C<Crypt::SSLeay> from being distributed as a PPM package
from
C<Crypt::SSLeay> from an alternative repository (see
L<PPM::Repositories>).
L<LWP::UserAgent> and L<Crypt::SSLeay> have their own versions of
and is likely to be incompatible with C<Crypt::SSLeay> proxy support.
F<mod_proxy>. The C<CONNECT> method is used by C<Crypt::SSLeay>'s
=head2 Crypt::SSLeay proxy support
For native C<Crypt::SSLeay> proxy support of https requests,
that method will likely override or break the C<Crypt::SSLeay>
For an example of LWP scripting with C<Crypt::SSLeay> native proxy
C<Crypt::SSLeay> distribution.
C<Crypt::SSLeay> tries very hard to connect to I<any> SSL web server
has been the bane of many a Crypt::SSLeay user.
For use of C<Crypt::SSLeay> & C<Net::SSL> with Perl's L<LWP>, please
/usr/local/perl/lib/site_perl/5.18.2/aix/Crypt/SSLeay.pm
require Crypt::SSLeay;
require Crypt::SSLeay::MainContext;
Crypt::SSLeay::MainContext::main_ctx(@_);
## Crypt::SSLeay must also aware the SSL Proxy before calling
my $ssl = Crypt::SSLeay::Conn->new(*$self->{ssl_ctx}, $debug, $self);
# Delegate these calls to the Crypt::SSLeay::Conn object
while(my $err=Crypt::SSLeay::Err::get_error_string()) {
Gets the peer certificate from the underlying C<Crypt::SSLeay::Conn>
of Crypt::SSLeay), the user agent string is no longer sent to the
/usr/local/perl/lib/site_perl/5.18.2/aix/Net/SSL.pm
Yannick Bergeron
Advisory IT Specialist
From: "A. Sinan Unur via RT" <bug-Crypt-SSLeay@rt.cpan.org>
To: Yannick Y Bergeron/Bromont/IBM@IBMCA
Date: 04/13/2014 09:29 PM
Subject: [rt.cpan.org #88786] Issues while trying to compile
Crypt-SSLeay-0.64 on AIX 6.1 with custom openssl location
<URL:
https://rt.cpan.org/Ticket/Display.html?id=88786 >
Well, it's only Makefile.PL that needs it, to trim down the list of
libraries passed to WriteMakefile. So, I'll think about that.
In the mean time, are you certain you need Crypt::SSLeay? I would
appreciate it if you can tell me which version of LWP you are using. If
you are using LWP > 6.01, then you might actually be using IO::Socket::SSL
because that's what LWP uses nowadays unless you specifically override it.
Thank you,
-- Sinan
On Fri Apr 11 15:10:34 2014, yaberger@ca.ibm.com wrote:
Show quoted text> Hi,
>
> 0.65_08 has a new dependency on Devel::CheckLib
> is it possible to remove/replace it by one that is already part of Perl
> core?
>
>
> Best regards,
>
> Yannick Bergeron
> Advisory IT Specialist
>
>
>
> From: "A. Sinan Unur via RT" <bug-Crypt-SSLeay@rt.cpan.org>
> To: Yannick Y Bergeron/Bromont/IBM@IBMCA
> Date: 04/10/2014 09:56 AM
> Subject: [rt.cpan.org #88786] Issues while trying to compile
> Crypt-SSLeay-0.64 on AIX 6.1 with custom openssl location
>
>
>
> <URL:
https://rt.cpan.org/Ticket/Display.html?id=88786 >
>
> Hello:
>
> Thank you for your report. I recently uploaded 0.65_08 to CPAN and it
> should now handle custom locations better.
>
> Once this goes through CPAN testers, I am going to update the
> documentation and upload 0.66.
>
> Best,
>
> -- Sinan
>
> On Wed Sep 18 12:36:52 2013, yaberger@ca.ibm.com wrote:
> > Hi,
> >
> > I had some issues while trying to compile Crypt-SSLeay 0.64 on AIX 6.1
Show quoted text> TL7
> > SP7 with IBM XL C/C++ 10.1, Perl 5.18.1, OpenSSL 1.0.1e
> > OpenSSL is installed under /usr/local/openssl, so their lib are under
> > /usr/local/openssl/lib and their includes are under
> > /usr/local/openssl/include
> > I first tried to install it with cpanp but it was not able to find
where
Show quoted text>
> > the lib/include where.
> > So I decided to download the tar.gz and manually make it works.
> >
> > I've been able to compile it with this procedure but the make test was
Show quoted text> > failing
> > /usr/local/perl/bin/perl Makefile.PL
> > make LIBS=-L/usr/local/openssl/lib INC=-I/usr/local/openssl/include
> > make test
> >
> > I've cleared everything and after reading the following bug report:
> >
https://rt.cpan.org/Public/Bug/Display.html?id=78848
> >
> > diff -c Crypt-SSLeay-0.64/Makefile.PL
> > Crypt-SSLeay-0.64.yaberger/Makefile.PL
> > *** Crypt-SSLeay-0.64/Makefile.PL Sat Aug 4 10:11:32 2012
> > --- Crypt-SSLeay-0.64.yaberger/Makefile.PL Wed Sep 18 11:22:11
2013
Show quoted text> > ***************
> > *** 38,44 ****
> >
> > VERSION_FROM => 'SSLeay.pm',
> >
> > ! LIBS => [q{-lz -lssl -lcrypto -lssl32 -lssleay32 -leay32}],
> >
> > ($opt_static ? (LINK_TYPE => 'static') : ()),
> >
> > --- 38,46 ----
> >
> > VERSION_FROM => 'SSLeay.pm',
> >
> > ! LIBS => [q{-L/usr/local/openssl/lib -lz -lssl -lcrypto -lssl32
> > -lssleay32 -leay32}],
> > !
> > ! INC => q{-I/usr/local/openssl/include},
> >
> > ($opt_static ? (LINK_TYPE => 'static') : ()),
> > And been able to simply follow this procedure
> > /usr/local/perl/bin/perl Makefile.PL
> > make
> > make test
> > make install
> >
> > wouldn't it be possible to pass arguments to "perl Makefile.PL" to set
Show quoted text> > these values instead of manually modifying the Makefile.PL?
> >
> >
> > Best regards,
> >
> > Yannick Bergeron
> > 450 534-7711
> > yaberger@ca.ibm.com
> > Advisory IT Specialist
>
>
>