Net::SSLeay Perl module

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
techwg
-


Joined: 03 Nov 2007
Posts: 1

PostPosted: Sat Nov 03, 2007 11:54 pm    Post subject: Net::SSLeay Perl module Reply with quote

Hi guys, im trying to hook up a cgi proxy using ssl, but i cant get the proxy to deal with https links because aparently i need the Net::SSLeay Perl module. Could you help me get this working? Thanks alot

WG
Back to top View user's profile Send private message
Marty_
-


Joined: 21 Feb 2006
Posts: 55

PostPosted: Wed Nov 07, 2007 10:19 am    Post subject: Reply with quote

Assuming you have Perl installed already and all you require is this module Net::SSleay then you you should be able to got your /Perl/Bin directory and double click cpan then type : install http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Net-SSLeay-1.32.tar.gz
_________________
What is Pay Per Play ?
Back to top View user's profile Send private message
dke
-


Joined: 22 Dec 2007
Posts: 2

PostPosted: Sat Dec 22, 2007 6:28 am    Post subject: HTTPS problems with CGIProxy Reply with quote

I have the same problem with CGIProxy as the person who started this thread. It seems to work fine with HTTP sites, but not HTTPS. (For example, when I try to go to gmail.com, I get the CGIProxy message "WARNING: SSL not supported, entering non-anonymous area! " etc.)

When I tried the command from the last post, I got the message "Warning: Cannot install Net_SSLeay..., don't know what it is."

I used two different versions of Net_SSLeay -- the version in the last post and also Net_SSLeay.pm-1.21.tar.gz -- and got the same message for both (just a different version where the elipses shows above).

I have another theory: perhaps Abyss doesn't use OpenSSL, or it uses a version that is no compatible with the Net_SSLeay versions I tried (e.g., version 1.21 required OpenSSL 0.9.6g according to http://symlabs.com/Offerings/Net_SSLeay/). Details on that theory follow. If I'm wrong here, skip the rest of this post (unless you want to see version info).

-------------

The CGIProxy page at http://www.jmarshall.com/tools/cgiproxy/ says that TWO things are required for HTTPS SSL to work:

"To access secure (SSL) servers through CGIProxy, you need to add SSL support to it by installing these two additional packages on the server:

1. OpenSSL, a freely-available library of SSL and cryptography tools
2. Net::SSLeay, a Perl module to interface with OpenSSL

OpenSSL is already installed on many servers. You can usually tell which version you have (if any) by entering "openssl version" at a Unix prompt."

I tried to see which version of SSL is provided with Abyss, but failed in that effort. So perhaps I Abyss doesn't have OpenSSL, or is it the wrong version for the version of SSLeay that I'm trying.

Sorry of all this sounds like newbie questions. Any help is appreciated.

----------

My Version info:

Abyss X1 2.5
CGIProxy 2.0.1
Perl5.10.0
WinXP 2002 sp2

Other info:

I am running it on port 443
My CGIProxy settings are all at the defaults except one: $SSL_PROXY= 'mydomain.com:443' ;
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Dec 22, 2007 4:01 pm    Post subject: Re: HTTPS problems with CGIProxy Reply with quote

dke wrote:
I have another theory: perhaps Abyss doesn't use OpenSSL, or it uses a version that is no compatible with the Net_SSLeay versions I tried (e.g., version 1.21 required OpenSSL 0.9.6g according to http://symlabs.com/Offerings/Net_SSLeay/). Details on that theory follow. If I'm wrong here, skip the rest of this post (unless you want to see version info).


When you execute a Perl script, it will use its own libraries and will load what it needs regardless of what the Web server supports. The CGI model is very easy: the Web server launches Perl, gives it the name of the script to execute, Perl does what it has to do as if you launched it from the command line, it then sends back the result to Abyss, which on its turn will send it back to the client browser.

So when Perl is executing your script, it does not even care what Web server is there or what libraries that Web server has. Perl SSL stuff uses its own libraries (including its own OpenSSL libraries). Abyss Web Server has its own OpenSSL libraries that are not meant to be used by other applications (and are put in Abyss Web Server's directory for that reason, they are not to be shared by other applications).

So your problem is purely related to Perl and its libraries/modules. If you launch the script from the command line directly, you could encounter the same errors.

So we suggest that you reinstall Net::SSLeay and ensure that it finds OpenSSL libraries in your PATH. If you don't have them, install them from http://www.openssl.org.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group