yeah has asked for the wisdom of the Perl Monks concerning the following question:

Perl Sages, I've spent many hours trying to get Crypt::SSLeay to work with ActiveState Perl 10.x running on Windblows 2003. Here is the test code:
$ cat testSSL.pl # https-test.pl - HTTPS GET example # # c Copyright, 2004-2005 By John Bokma, http://johnbokma.com/ # # Last updated: 2006-05-22 18:54:19 -0500 #!/usr/bin/perl -w use strict; use warnings; use LWP::Debug qw(+); use LWP::UserAgent; my $url = 'https://www.helsinki.fi/'; my $ua = LWP::UserAgent->new; my $response = $ua->get( $url ); $response->is_success or die "Failed to GET '$url': ", $response->status_line; print $response->as_string; Here is the result: $ perl testSSL.pl LWP::UserAgent::new: () LWP::UserAgent::request: () LWP::UserAgent::send_request: GET https://www.helsinki.fi/ LWP::UserAgent::_need_proxy: Not proxied LWP::UserAgent::request: Simple response: Not Implemented Failed to GET 'https://www.helsinki.fi/': 501 Protocol scheme 'https' +is not sup ported (Crypt::SSLeay not installed) at testSSL.pl line 19. $

I've tried looking at everything including file permissions, path variables, etc. I've thought about dropping down to Perl 8.8.x just to see what happens, but... It would be great to get some work done so any help would be appreciated. And yes Ive looked at the responses here as well.

  • Comment on ActiveState Perl 10.x and Crypt::SSLeay not installed errors on Windows 2003
  • Download Code

Replies are listed 'Best First'.
Re: ActiveState Perl 10.x and Crypt::SSLeay not installed errors on Windows 2003
by grinder (Bishop) on Mar 28, 2008 at 22:27 UTC

    Hi, I'm the maintainer for Crypt::SSLeay. Did you read the following part of the documentation?

    For Activestate users, the ActiveState company does not have a permit from the Canadian Federal Government to distribute cryptographic software. This prevents Crypt::SSLeay from being distributed as a PPM package from their repository. See http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/faq/ActivePerl-faq2.html#crypto_packages for more information on this issue.

    You may download it from Randy Kobes's PPM repository by using the following command:

    ppm install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd

    An alternative is to add the uwinnipeg.ca PPM repository to your local installation. See http://cpan.uwinnipeg.ca/htdocs/faqs/ppm.html for more details.

    One other minor detail that many people seem to overlook, it's not actually the module Crypt::SSLeay that is of interest to LWP, but rather the module Net::SSL, which is something that the Crypt-SSLeay distribution contains.

    I must admit that I don't know, one way or the other, if you need to have the OpenSSL windows package installed or not. I have it installed anyway, because I test to ensure that the module works with Strawberry Perl. I'll have to remember to de-install OpenSSL at some point on my Windows box and see if Net::SSL works afterwards.

    • another intruder with the mooring in the heart of the Perl

      You may download it from Randy Kobes's PPM repository by using the following command:

      ppm install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd

      There's a minor problem with that. The ppd by that url contains:

      OpenSSL glue that provides LWP https support Joshua Chamas <josh (at) +chamas dot com> install_ssl

      which means that ppm unsurprisingly reports:

      C:\Perl510\bin>ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/C +rypt-SSLeay.ppd ppm install failed: The PPD does not provide code to install for this +platform

      Googling turns up http://cpan.uwinnipeg.ca/PPMPackages/10xx/Crypt-SSLeay.ppd with equally useless contents.

      Looking further, I found this page(*) which has this link which list another link under the heading "Win32 PPM packages for "Crypt-SSLeay"" uwinnipeg Perl 5.10 repository 0.57 which takes you back to the link(*) above :(


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        Not to be an **s but why is this so difficult? I mean I installed 20 other packages without a hitch. Heck I even remembered how to build openssl using a less than friendly VC++ environment. This is just so painful for such a simple thing. But then again if I wish I were a bit more clever to figure this out:L(
      I am running version 5.10 and according to the U Winnipeg site the link is 10.x specific - http://cpan.uwinnipeg.ca/PPMPackages/10xx/package.xml . Also I tried using your link earlier and got:
      ppm install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd ppm install failed: The PPD does not provide code to install for this +platform
      I installed from that link using ppm to no avail
Re: ActiveState Perl 10.x and Crypt::SSLeay not installed errors on Windows 2003
by Corion (Patriarch) on Mar 28, 2008 at 21:35 UTC

    Did you check that your AS Perl 5.10.0 has Crypt::SSLeay installed? Because Perl sure doesn't think so:

    (Crypt::SSLeay not installed)
      Just ran ppm and verified and all came back normal

        Well, maybe you should test by asking Perl itself:

        perl -V

        will tell you about the Perl you're using, the Perl version etc..

        perl -MCrypt::SSLeay -e "print 'OK'"

        will tell you whether Crypt::SSLeay actually is installed for your Perl or not.

Re: ActiveState Perl 10.x and Crypt::SSLeay not installed errors on Windows 2003
by Herkum (Parson) on Mar 31, 2008 at 04:38 UTC

    I wish posts like this, which talk more about technical support, would be put into another section instead of being mixed in with general Perl questions.

    As far as I am concerned this stuff is gold when I trying to get certain libraries working and there is a lot of chafe to sort through when it is left as a 'Seekers of Perl Wisdom'

      ++ Agreed

      Personally I am fascinated with these sort of problems and find them addictive in trying to find a solution.

      Perhaps a Technical Help Section is called for.

        I was able to install on Windows Server 2003 running perl 5.10.0 from the following link: http://www.bribes.org/perl/ppm/Crypt-SSLeay.ppd