Hi Michael, I get back to you a little late, because i spend about a day trying to get SSL.pm to work. I'm afraid i can't get it to install properly. Which made me think about what you set using SSLeay.pm This module already seemed installed in the /Net library so why not use it.
The only thing is i'm a bit novice and i was wondering if i could do something like this with Net::SSLeay as well: <code> use Net::SSL; $sock = Net::SSL->new(PeerAddr => $host, PeerPort => $port, ) || &Error("Can't connect to $host:$port"); $sock->print("GET /$in4?cnumber=$in6&exp=$in7&amount=$in5&invoice=$in10&zip=$in12&street=$in11 &mid=$in8 HTTP/1.0\n\n"); $buf = ''; $buffy = ''; while ($sock->read($buf,1024)) { $buffy = join ('',$buffy,$buf); } etc... <code/> I can't seem to figure out how to rewrite the above critical part with SSLeay.pm so that eventually i can make the same secure socket connection. Could you advise me on this one if you have the time. Thanks in advance, Dirk van der Giesen ----- Original Message ----- From: "Michael Chang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 12, 2002 12:22 PM Subject: Re: perl net::ssl module > > A 'Connection refused' message is most likely occurring because the other > machine has nothing listening on the port that you're trying to connect > to. It ends up sending an RST packet as a result. Make sure you're > connecting to the right port and/or that the server you're connecting to > has something listening on the port you're trying to connect to. > > F.W.I.W.: I've found the Net::SSLeay perl module to be more easy to use > and featureful. > > > Michael > > > > > On Mon, 12 Aug 2002, Dirk van der Giesen wrote: > > > Hi everybody, > > > > I'm working on Linux mandrake 8.2 secure. > > When i try to connect secure to a remote machine's port (cc transactions, yes of course) i use perl's net::ssl module, or that is ssl.pm (the latest version from cpan) > > Now i keep getiing the error of connecttion refused on line 87 in the module: > > Exact error looks like this: > > > > Connect failed: connect: Connection refused Connection refused at /usr/lib/perl5/site_perl/5.6.1/i386-linux/Net/SSL.pm line 87 > > > > Has anybody has any idea if this error could occur on any misconfiguration or something like that. I'm almost 100% positive i use the right variables in my connect string to be allowed on that remote machine:port > > > > Sincerely, > > > > Dirk van der Giesen > > > > -- > /* BEGIN SIG > * > * "It might look like I'm doing nothing, but at the cellular level > * I'm really quite busy." > * ---anonymous > * > *----------------------------- > * Michael Chang > * [EMAIL PROTECTED] > * http://www.syndetic.org/ > */ > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]