Solved

Referencing Net:SSL from a script in Windows

Posted on 2001-06-03
3
146 Views
Last Modified: 2011-09-20
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
Comment
Question by:xenolith00
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
Kim Ryan earned 200 total points
ID: 6151176
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
 
LVL 19

Expert Comment

by:Kim Ryan
ID: 6158101
Has this helped?
0
 

Author Comment

by:xenolith00
ID: 6221020
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often people are aiming at development of perfect Magento websites. Though, it is easier said than done. You know what’s much easier? To ruin everything. It can be done in seconds. Many of us experimented with design, tried to change some values dir…
E-commerce is quite a gambling world, and you should never entrust your business to a lucky chance. In order to outrun your competitors in a race to attract as many customers as possible, you need to have a well thought-out strategy under your belt.…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question