The last few days I've been trying to figure out why my perl script using the SOAP::Lite module keeps dying when I call https (SSL Encryption), but it works flawlessly when using plain http.  The uninformative error message I received when my perl script dies is listed below:

500 Can't locate object method "new" via package "LWP::Protocol::https::Socket"

I must admit I wasted a good bit of time following the poor links return from a Google search on this error message.  Most of the links were nothing more than a web page filled with error messages along with some marketing banner ads.  No solutions, no luck.

After numerous searches on multiple search engines, I *finally* came across the relevant information, which I will post below so I will never have to go through this again. Grin.

If you are running Active State's Perl 5.8.X release on windows and need to use an https call with SOAP::Lite, the links below should help you get on your way.

1)  Link to Active State's Web page stating that they will distribute the SSL modules with perl, but will provide different repositories.

The Canadian Federal Government requires that companies and organizations that wish to distribute cryptographic software get a permit in order to do so. ActiveState does not have this permission.


The two popular crypto modules Crypt-SSLeay and Net_SSLeay can be found in other repositories, and can be installed using PPM as follows:

    ppm install

The above command installs the Perl 5.8 PPM of Crypt-SSLeay from the University of Winnipeg's PPM repositories. For the Perl 5.6 PPM, use the following command:

    ppm install

2)  PPM command to fetch Crypt-SSLeay.ppd for Active State Perl 5.8

    ppm install


3)  Excellent write up on how to use Active State's PPM utility from Perl Monks.

    I found this link above by reading a question about Installing Net::SSLeay on Windows XP

4)  Link to the Win32 SSL dll file, which needs to be installed into your path, probably C:\perl\bin\

So the short answer is open up your command prompt and run the following command.


ppm install