Results 1 to 23 of 23
  1. #1
    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

  2. #2
    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

  3. #3
    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

  4. #4
    -------- 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.

  5. #5
    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


  6. #6
    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....

  7. #7
    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'
    **

  8. #8
    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

  9. #9
    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 version

  10. #10
    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 [~]#

  11. #11
    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.cgi

  12. #12
    Join Date
    Jul 2004
    Posts
    873
    yes artofmobile , i wana access sll sites with cgiproxy

  13. #13
    Originally posted by artin1982
    yes artofmobile , i wana access sll sites with cgiproxy
    I see.

    Sorry, I don't know what problem are you encountering. Have you checked your apache's logs?

  14. #14
    Join Date
    Jul 2004
    Posts
    873
    no any error in apache logs

  15. #15
    Do you get anything when you run the following example command:


  16. #16
    Join Date
    Jul 2004
    Posts
    873
    no any error , i got paypal html

  17. #17
    Originally posted by artin1982
    no any error , i got paypal html
    No error even if you replace my domain with yours?

  18. #18
    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.

  19. #19
    Setup a SSL service and access the site with HTTPS rather than HTTP.

  20. #20
    Join Date
    Jul 2004
    Posts
    873
    mean i should buy a ssl service ? like geotrust,verisign & .. ?

    or ?

  21. #21

  22. #22
    Join Date
    Jul 2004
    Posts
    873
    artofmobile
    do u know any way for optimizing this cgiproxy ?!!
    bcoz cgiproxy has very hgh cpu load !

  23. #23
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •