• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 156
  • Last Modified:

Referencing Net:SSL from a script in Windows

I got Net:SSL and OpenSSL installed on my Windows server.  Now I can't get the script to work.  The guy who wrote the script seems to think that it is a problem with the path in the script that references the SSL.  What the script is supposed to do is send encrypt and send credit card information that customers enter on our site to another companies server where it will be processed with their merchant account. SSL is locatedin C:/perl/lib/Net. Here is the part of the script that we are working with:

#########################################################################################
#           UNCOMMENT next 3 lines and INSERT the path to Net::SSL on your
#          server to use credit card processing

          use lib qw(pathto Net::SSL i.e. c:\perl\lib);
          use Net::SSL;
          &sslSocket($qstring);


#          THEN COMMENT OUT THE NEXT LINE

#print "Edit lines 13, 14 and 15 in eNomInterface.pm in your Lib directory for SSL.<br>";

#########################################################################################

This is what the developer initially suggested we try.  When this didn't work, he recommended that we change this line:

use lib qw(pathto Net::SSL i.e. c:\perl\lib);

to the following:

use lib qw(perl\lib);

That still didn't work.  If anyone has any idea how to fix this that would be SO GREAT!  I have been trying to get this running forever and am not having any luck.  Let me know if you need more information and I will be happy to help with anything that I can.  Thanks.

Beth

0
xenolith00
Asked:
xenolith00
  • 2
1 Solution
 
Kim RyanIT ConsultantCommented:
First you need to check where Perl is installed. Form DOS prompt type perl -e "print @INC" . This should come up wiht somewthing like C:/perl/lib,C:/perl/site/lib. This is the search path that PErl uses to find modules. Then check that your module is in this area under a Net directory.

Some web servers may install perl modules in a completley different place, such as /home/yourdirectory/cgi-bin on Unix. This is your personal collection of modules, not available for others to edit.

It's really a matter of finding where the modules are. If you can write a dummy perl script to just include the use Net::SSL statement, and run it form the command line, this will prove if your paths are setup correctly.
0
 
Kim RyanIT ConsultantCommented:
Has this helped?
0
 
xenolith00Author Commented:
We ended up going with an ASP version of the same page, so we didn't need to go through with this afterall.  Thanks so much for the effort to help me and sorry that it took me so long to get back to you.

Beth
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now