Solved

Referencing Net:SSL from a script in Windows

Posted on 2001-06-03
3
143 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
Comment Utility
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
Comment Utility
Has this helped?
0
 

Author Comment

by:xenolith00
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now