fails to connect to gtalk (TLS)

Discussion in 'Ruby' started by darren, Jun 4, 2008.

  1. darren

    darren Guest

    Platform : Debian GNU/Linux Unstable
    Ruby version: ruby 1.8.7 (2008-05-31 patchlevel 0) [i486-linux]

    here is the sample code:
    require 'openssl'
    require 'socket'

    socket ="", 5223)
    ctx ='TLSv1')

    sslsocket =, ctx)

    puts "Start connect"
    rescue OpenSSL::SSL::SSLError => ssle
    puts "------------------#{ssle.message}---------------"

    puts "finished"
    it fails to connect with message:

    SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A

    while the sample code runs pretty ok on windows with ruby stable
    darren, Jun 4, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.