Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
fr3akb0y #1
Member since Sep 2017 · 12 posts
Group memberships: Members
Show profile · Link to this post
Subject: Can not login , Stucked where connection get secured on TLS
Hello alex,

This is the issue i'm facing

  1. SEND : <stream:stream to='localhost' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
  2.  
  3. RECV : <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="localhost" id="2957939044233355064" xml:lang="en" version="1.0" >
  4.  
  5. RECV : <stream:features xmlns:stream="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls></stream:features>
  6.  
  7. SEND : <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  8. RECV : <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />


There is no response after this. What i'm doing wrong?
But i'm not getting any issues from the Miranda Jabber Client

Here is the repsonse from Miranda




  1. <stream:stream id="11191774283362296479" version="1.0" xml:lang="en" xmlns:stream="http://etherx.jabber.org/streams" from="localhost" xmlns="jabber:client" />
  2. ­
  3. <stream:features>
  4. <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">
  5. <required />
  6. </starttls>
  7. </stream:features>
  8. ­
  9. <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  10. ­
  11. <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  12. ­
  13. <stream:stream id="9550368601470102838" version="1.0" xml:lang="en" xmlns:stream="http://etherx.jabber.org/streams" from="localhost" xmlns="jabber:client" />
  14. ­
  15. <stream:features>
  16. <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  17. <mechanism>
  18. DIGEST-MD5
  19. </mechanism>
  20. <mechanism>
  21. PLAIN
  22. </mechanism>
  23. <mechanism>
  24. SCRAM-SHA-1
  25. </mechanism>
  26. <mechanism>
  27. X-OAUTH2
  28. </mechanism>
  29. </mechanisms>
  30. </stream:features>
  31. ­
  32. <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="SCRAM-SHA-1">
  33. biwsbj13b2xmLHI9Q0JrNVV4cit5TGsyYlRKbTBDRVN2UnN0SHUrTWdwWWc=
  34. </auth>
  35. ­
  36. <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  37. cj1DQms1VXhyK3lMazJiVEptMENFU3ZSc3RIdStNZ3BZZ0hXdWZZc3dnSnIwYkNjUThXV09rSkE9PSxzPW4ySEs0YzdiTEtpT0pxa0VKRVlzSGc9PSxpPTQwOTY=
  38. </challenge>
  39. ­
  40. <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  41. Yz1iaXdzLHI9Q0JrNVV4cit5TGsyYlRKbTBDRVN2UnN0SHUrTWdwWWdIV3VmWXN3Z0pyMGJDY1E4V1dPa0pBPT0scD1PVVMxeWYyQTgyY2VFYkl5azE4bXRTYlRuTm89
  42. </response>
This post was edited 2 times, last on 2020-05-04, 08:16 by fr3akb0y.
Avatar
Alex #2
Member since Feb 2003 · 4346 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
  • which library and which version are you using?
  • On which platform are you?

It looks like it's stuck during TLS negotiaton. So most likely a TLS issue.

Alex
Avatar
fr3akb0y #3
Member since Sep 2017 · 12 posts
Group memberships: Members
Show profile · Link to this post
Ofcourse i'm using latest agsxmpp,this was working until yesterday
What will be the issue?
This post was edited 2 times, last on 2020-05-04, 08:17 by fr3akb0y.
Avatar
Alex #4
Member since Feb 2003 · 4346 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I don't know what the issue is. I assume your server was uodated to newer TLS version.
You have to debug agsXMPP. This library was retired a long time ago.

Alex
Avatar
fr3akb0y #5
Member since Sep 2017 · 12 posts
Group memberships: Members
Show profile · Link to this post
Oh.. Thank you for the reply
Can you give me a clue about where to Debug?
Avatar
Alex #6
Member since Feb 2003 · 4346 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Look for StartTls. I would assume that it's only passing old TLS1 protocol, and not the newer TLS protocols 1.1 and newer.

I can look at the code tonight, but not right now.

Alex
This post was edited 2 times, last on 2020-05-03, 12:44 by Alex.
Avatar
fr3akb0y #7
Member since Sep 2017 · 12 posts
Group memberships: Members
Show profile · Link to this post
Thank you so much Alex
Avatar
Alex #8
Member since Feb 2003 · 4346 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Please checkout this tls-upgrade branch and test it:
https://github.com/agnauck/agsXMPP/tree/tls-upgrade

If all is OK I will merge this to the master branch.

Alex
Avatar
fr3akb0y #9
Member since Sep 2017 · 12 posts
Group memberships: Members
Show profile · Link to this post
Yes it is working now.
Thank you so much for spending your time
Avatar
Alex #10
Member since Feb 2003 · 4346 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
code is merged to master now on Github
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS