Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to tigase using TLS #115

Open
GeoffreyOnRails opened this issue Jul 22, 2013 · 0 comments
Open

Unable to connect to tigase using TLS #115

GeoffreyOnRails opened this issue Jul 22, 2013 · 0 comments

Comments

@GeoffreyOnRails
Copy link

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"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant