Unable to connect to tigase using TLS
GeoffreyOnRails opened this issue · 0 comments
GeoffreyOnRails commented
I'm trying to setup a connection between tigase and blather but it doesn't work. I think there is a problem with the TLS connection of blather, because blather sends the good stanzas but tigase doesn't recieve the last one, which is supposed to be the first sent over the TLS-protected TCP connection.
Everything works fine with tigase using pidgin or psi.
Does anyone know how to fix that?
The code is the following :
require 'blather/client'
client = setup '9l73k2@app.local/blasther', 'mypassword'
Here is the end of the logs from blather :
D, [2013-07-22T14:56:31.602795 #10916] DEBUG -- : SENDING: (/home/me/.rvm/gems/ruby-1.9.3-p392/gems/blather-0.8.5/lib/blather/stream/features/tls.rb:16:in 'receive_data') <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
D, [2013-07-22T14:56:31.604345 #10916] DEBUG -- : RECEIVING (proceed) <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
D, [2013-07-22T14:56:31.605078 #10916] DEBUG -- : SENDING: (/home/me/.rvm/gems/ruby-1.9.3-p392/gems/blather-0.8.5/lib/blather/stream/client.rb:12:in 'start') <stream:stream to='app.local' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
Here is the end of the logs from tigase :
2013-07-22 14:56:31 XMPPIOService.processSocketData() FINEST: me/127.0.0.1_5222_127.0.0.1_39694, type: accept, Socket: me/127.0.0.1_5222_127.0.0.1_39694 Socket[addr=/127.0.0.1,port=39694,localport=5222], jid: null, Read packet: <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
2013-07-22 14:56:31 XMPPIOService.processWaitingPackets() FINEST: me/127.0.0.1_5222_127.0.0.1_39694, type: accept, Socket: me/127.0.0.1_5222_127.0.0.1_39694 Socket[addr=/127.0.0.1,port=39694,localport=5222], jid: null, Sending packet: from=null, to=null, DATA=<proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>, SIZE=50, XMLNS=urn:ietf:params:xml:ns:xmpp-tls, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2013-07-22 14:56:31 XMPPIOService.processWaitingPackets() FINEST: me/127.0.0.1_5222_127.0.0.1_39694, type: accept, Socket: me/127.0.0.1_5222_127.0.0.1_39694 Socket[addr=/127.0.0.1,port=39694,localport=5222], jid: null, SENT: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>