Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: How to enable SSL support in sockets connected with a sock5 server?

by dxxd116 (Beadle)
on Jan 12, 2009 at 12:34 UTC ( #735656=note: print w/ replies, xml ) Need Help??


in reply to Re: How to enable SSL support in sockets connected with a sock5 server?
in thread How to enable SSL support in sockets connected with a sock5 server?

Connecting to google gmail now! 220 mx.google.com ESMTP q18sm34685365pog.9 250-mx.google.com at your service, [121.15.233.169] 250-SIZE 35651584 Usage: IO::Handle::error(handle) at C:/Perl/site/lib/IO/Socket/SSL.pm +line 611, <GEN0> line 3.
Above is the reponse I got after I use IO::Socket::SSL::start_SSL method on the socket connected through a socks5 server. Code added are as below
if(not IO::Socket::SSL::start_SSL($f, SSL_version => "SSLv3 TLSv1")){ die "Couldn't start TLS: \n" . IO::Socket::SSL::errstr ."\n"; } print $f "EHLO localhost\n"; $line=<$f>; print $line; print FH $line; print $f "AUTH LOGIN\n"; $line=<$f>; print $line; print FH $line;
Any ideas? Thank you very much!


Comment on Re^2: How to enable SSL support in sockets connected with a sock5 server?
Select or Download Code
Replies are listed 'Best First'.
Re^3: How to enable SSL support in sockets connected with a sock5 server?
by kennethk (Abbot) on Jan 12, 2009 at 15:17 UTC
    Specifically in connection to the gmail servers, I had significantly more luck a few months back when I wrote an automailer using Net::SMTP::TLS - the final code is published here.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://735656]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2015-07-31 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls