Results 1 to 23 of 23
Thread: Net:SSLEY Perl Module Path
-
03-23-2005, 05:38 AM #1Web Hosting Master
- Join Date
- Jul 2004
- Posts
- 873
Net:SSLEY Perl Module Path
hi
i have a perl path and it asking for perl netsley module path
how can i find it ?!
thanks
-
03-23-2005, 06:19 AM #2WHT Addict
- Join Date
- Mar 2005
- Posts
- 164
Try to looking it for into @INC
perl -e 'foreach(@INC) { print $_."\n" if(-f $_."/Net/SSLeay.pm"); }'
or on the hole server
# find /path/to/your/perl/installation -name SSLeay.pm
for example
# find /usr/local/perl5 -name SSLeay.pm
-
03-23-2005, 07:06 AM #3Web Hosting Master
- Join Date
- Jul 2004
- Posts
- 873
root@server [~]# perl -e 'foreach(@INC) { print $_."\n" if(-f $_."/Net/SSLeay.pm"); }'
/usr/lib/perl5/site_perl/5.8.4/i686-linux
thanks just tell me is foloowing command right in perl ? bcoz i dont know perl and i just wana enable cgiproxy ssl mode
http://www.jmarshall.com/tools/cgiproxy/#SSL
and when i am inserting following line script is not working
use lib '/usr/lib/perl5/site_perl/5.8.4/i686-linux'
thanks
-
03-23-2005, 08:43 AM #4WHT Addict
- Join Date
- Mar 2005
- Posts
- 164
-------- cut ------------
#!/usr/bin/perl
BEGIN {
push(@INC, '/usr/lib/perl5/site_perl/5.8.4/i686-linux');
}
use NET:SLeay;
--------- cut ------------
And it would be beter if you show me your errors.
-
03-23-2005, 08:46 AM #5Web Hosting Master
- Join Date
- May 2001
- Posts
- 2,167
try the path /usr/bin or /usr/sbin
all the modules are usually there.Affordable Managed Hosting Solutions for Professional & Business since 2001
Mxhub.com - Global : USA - UK - Canada - Europe - Asia Pacific
-
03-23-2005, 09:33 AM #6Junior Guru
- Join Date
- May 2004
- Posts
- 238
Use this lin:
perl -MNet:SLeay -e 'print "$Net:SLeay::VERSION\n"'
If you get the following line:
Can't locate Net/SSLeay.pm in @INC......
This mean that the perl library is so likely not install or the path is not in the include library for you default perl.
Do the following check:
find / -name "SSLeay.pm"|grep "Net/SSLeay.pm"
If you found it, you might want to get someone to check why it is not link to your default perl. I've seen a lot of system with multi version of perl install in the system and library is just mixed up, if so, you might want to do a clean up. I would not go to the details how to do a cleanup as it required quite a bit of knowledge about perl.
If yoiu can't find, follow the following steps:
#cpan
cpan> install Net:SLeay
If you face any problem, please cut and paste the error so that someone can help you better....Art of Mobile: A place for mobile resource
-
03-23-2005, 12:18 PM #7Web Hosting Master
- Join Date
- Jul 2004
- Posts
- 873
root@server [~]# perl -MNet:SLeay -e 'print "$Net:SLeay::VERSION\n"'
1.25
and when i inserto following code , script stop working !
***
#!/usr/bin/perl
BEGIN {
push(@INC, '/usr/lib/perl5/site_perl/5.8.4/i686-linux');
}
use NET:SLeay;
--------- cut ------
***
root@server [~]# curl http://www.domain.com/nph-test.pl
curl: (52) Empty reply from server
root@server [~]#
there is no error or any things just replaying emty
but if you read http://www.jmarshall.com/tools/cgiproxy/#SSL they said their script should find netssley automaticly
else i should use
**
use lib 'path/to/your/modules'
**
-
03-23-2005, 02:24 PM #8Web Hosting Master
- Join Date
- Jul 2004
- Posts
- 873
root@server [~]# find / -name "SSLeay.pm"|grep "Net/SSLeay.pm"
/usr/lib/perl5/site_perl/5.8.4/i686-linux/Net/SSLeay.pm
-
03-23-2005, 05:45 PM #9Junior Guru
- Join Date
- May 2004
- Posts
- 238
Do a /usr/bin/perl -version
Do you get 5.8.4?
If so, problem might be something else as your perl version is ccorect now.
Check you default SSL packages, the following is an example how do that:
# which openssl
Get the path and do the following:
# /usr/bin/openssl versionArt of Mobile: A place for mobile resource
-
03-24-2005, 05:29 AM #10Web Hosting Master
- Join Date
- Jul 2004
- Posts
- 873
root@server [~]# /usr/bin/perl -version
This is perl, v5.8.4 built for i686-linux
Copyright 1987-2004, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
root@server [~]# which openssl
/usr/bin/openssl
root@server [~]#
root@server [~]# /usr/bin/openssl version
OpenSSL 0.9.7a Feb 19 2003
root@server [~]#
-
03-24-2005, 07:09 AM #11Junior Guru
- Join Date
- May 2004
- Posts
- 238
Seems alright to me.
I had tried to install the cgiproxy on my server, it is working. The following and both the secured and unsecured works. Do you have any error in your apache?
Is this what you want to achieve:
https://www.uptimestatus.com/cgi-bin/nph-proxy.cgi
http://www.uptimestatus.com/cgi-bin/nph-proxy.cgiArt of Mobile: A place for mobile resource
-
03-24-2005, 07:47 AM #12Web Hosting Master
- Join Date
- Jul 2004
- Posts
- 873
yes artofmobile , i wana access sll sites with cgiproxy
-
03-24-2005, 08:01 AM #13Junior Guru
- Join Date
- May 2004
- Posts
- 238
Originally posted by artin1982
yes artofmobile , i wana access sll sites with cgiproxy
Sorry, I don't know what problem are you encountering. Have you checked your apache's logs?Art of Mobile: A place for mobile resource
-
03-24-2005, 08:40 AM #14Web Hosting Master
- Join Date
- Jul 2004
- Posts
- 873
no any error in apache logs
-
03-24-2005, 08:46 AM #15Junior Guru
- Join Date
- May 2004
- Posts
- 238
Do you get anything when you run the following example command:
Code:curl -k https://www.uptimestatus.com/cgi-bin...ww.paypal.com/
Art of Mobile: A place for mobile resource
-
03-24-2005, 04:33 PM #16Web Hosting Master
- Join Date
- Jul 2004
- Posts
- 873
no any error , i got paypal html
-
03-24-2005, 09:27 PM #17Junior Guru
- Join Date
- May 2004
- Posts
- 238
Originally posted by artin1982
no any error , i got paypal htmlArt of Mobile: A place for mobile resource
-
03-25-2005, 03:42 AM #18Web Hosting Master
- Join Date
- Jul 2004
- Posts
- 873
Retrieval of secure URLs through a non-secure proxy is forbidden.
This proxy is running on a non-secure server, which means that retrieval of pages from secure servers is not permitted. The danger is that the user and the end server may believe they have a secure connection between them, while in fact the link between the user and this proxy is insecure and eavesdropping may occur. That's why we have secure servers, after all.
This proxy must run on a secure server before being allowed to retrieve pages from other secure servers.
-
03-25-2005, 03:52 AM #19Junior Guru
- Join Date
- May 2004
- Posts
- 238
Setup a SSL service and access the site with HTTPS rather than HTTP.
Art of Mobile: A place for mobile resource
-
03-25-2005, 05:00 AM #20Web Hosting Master
- Join Date
- Jul 2004
- Posts
- 873
mean i should buy a ssl service ? like geotrust,verisign & .. ?
or ?
-
03-25-2005, 05:10 AM #21WHT Addict
- Join Date
- Mar 2005
- Posts
- 164
You should create your self-signed certificate for this.
http://www.modssl.org/docs/2.8/ssl_faq.html#cert-real
http://www.modssl.org/docs/2.8/ssl_faq.html#cert-ownca
-
03-25-2005, 04:46 PM #22Web Hosting Master
- Join Date
- Jul 2004
- Posts
- 873
artofmobile
do u know any way for optimizing this cgiproxy ?!!
bcoz cgiproxy has very hgh cpu load !
-
03-25-2005, 08:43 PM #23Junior Guru
- Join Date
- May 2004
- Posts
- 238
To optimise Perl on CGI is a whole big topic, you can else do it on coding or try playing with mod_perl.
A good document is at http://perl.apache.org/docs/1.0/guide/performance.html
Hope this is helpful to you.Art of Mobile: A place for mobile resource