XSF Discussion - 2020-04-25


  1. Alex

    I usually update memberlist after every voting in our website repo the same or on the next day. So Git should be the reference

  2. Alex

    But I am a human and can make mistakes 😉

  3. flow

    Alex, sure, no worries

  4. Alex

    flow: nur in mailman, müsste schauen ob es dort einen export gibt

  5. gaurav

    can anyone help me with this .https://stackoverflow.com/questions/61341657/ssl-tls-required-by-server-but-disabled-in-client

  6. Daniel

    Maybe ask the actual question instead of linking to it

  7. Neustradamus

    gaurav: TIme to change of XMPP client!

  8. gaurav

    I am building a chat application using smack and prosody xmpp server hosted on digital ocean so cuurently i am facing issue when i am logging in my app,but teh same credentials work on other popular xmpp clients. I have made my own cert,key and conf file in my server. I am getting the same error again and again

  9. gaurav

    getting this error 2020-04-21 16:03:40.988 15114-15153/ E/app1: SSL/TLS required by server but disabled in client 2020-04-21 16:03:40.992 15114-15178/ E/xmpp: cononection closed on errorSSL/TLS required by server but disabled in client

  10. gaurav

    I have tried all the solutions available changed the port,added my cert file as pem file but that didnt go through used a keystore but no luck.

  11. gaurav

    My code:

  12. gaurav

    AbstractXMPPConnection mConnection; ConnectionListener connectionListener = new ConnectionListener() { @Override public void connected(XMPPConnection xmppConnection) { Log.e("xmpp", "connected"); try { SASLAuthentication.registerSASLMechanism(new SASLMechanism() { @Override protected void authenticateInternal(CallbackHandler callbackHandler) throws SmackException { } @Override protected byte[] getAuthenticationText() throws SmackException { byte[] authcid = toBytes('\u0000' + this.authenticationId); byte[] passw = toBytes('\u0000' + this.password); return ByteUtils.concact(authcid, passw); } @Override public String getName() { return "PLAIN"; } @Override public int getPriority() { return 410; } @Override public void checkIfSuccessfulOrThrow() throws SmackException { } @Override protected SASLMechanism newInstance() { return this; } }); mConnection.login(); } catch (XMPPException e) { runOnUiThread(new Runnable() { @Override public void run() { Toast.makeText(SplashScreenActivity.this, "Incorrect username or password", Toast.LENGTH_LONG).show(); } }); Log.e("app",e.getMessage()); } catch (SmackException e) { Log.e("app",e.getMessage()); } catch (IOException e) { Log.e("app",e.getMessage()); } catch (InterruptedException e) { Log.e("app",e.getMessage()); } } @Override public void authenticated(XMPPConnection xmppConnection, boolean b) { Log.e("xmpp", "authenticated"); runOnUiThread(new Runnable() { @Override public void run() { Toast.makeText(SplashScreenActivity.this,"Logged in successfully...",Toast.LENGTH_LONG ).show(); } }); } @Override public void connectionClosed() { Log.e("xmpp", "connection closed"); } @Override public void connectionClosedOnError(Exception e) { Log.e("xmpp", "cononection closed on error" + e.getMessage()); } }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash_screen);= new Connect().execute(""); } class Connect extends AsyncTask<String, Void, Void> { @Override protected Void doInBackground(String... params) { AndroidUsingLinkProperties.setup(getApplicationContext()); String HOST = "myip"; DomainBareJid serviceName = null; InetAddress addr = null; try { serviceName = JidCreate.domainBareFrom("myip"); addr = InetAddress.getByName(HOST); XMPPTCPConnectionConfiguration config = null; XMPPTCPConnectionConfiguration.Builder builder = XMPPTCPConnectionConfiguration.builder(); builder.setServiceName(serviceName) .setHost(HOST) .setHostAddress(addr) .setPort(5222) .setHostnameVerifier(new HostnameVerifier() { public boolean verify(String hostname, SSLSession session) { return true; } }) .setUsernameAndPassword("myusename", "qwerty123") .setSecurityMode(ConnectionConfiguration.SecurityMode.disabled); XMPPTCPConnection.setUseStreamManagementResumptiodDefault(true); XMPPTCPConnection.setUseStreamManagementDefault(true); config = builder.build(); mConnection = new XMPPTCPConnection(config); } catch (XmppStringprepException | UnknownHostException e) { e.printStackTrace(); } try { mConnection.setReplyTimeout(10000); mConnection.addConnectionListener(connectionListener); mConnection.connect(); } catch (SmackException e) { Log.e("app1",e.getMessage()); } catch (IOException e) { Log.e("app2",e.getMessage()); } catch (XMPPException e) { Log.e("app3",e.getMessage()); } catch (InterruptedException e) { Log.e("app4",e.getMessage()); } return null; } }

  13. jonas’

    gaurav, this is not a room for development support

  14. jonas’

    also, posting large snippets of code is generally frowned upon

  15. lovetox frowns at gaurav

  16. gaurav

    very sorry , but can anyone guide where can i find help on this .

  17. jonas’

    you are using smack, so maybe a smack support forum would be best

  18. jonas’

    I think that’s somewhere here: https://discourse.igniterealtime.org/

  19. Neustradamus

    gaurav: there is the jdev mucroom: xmpp:jdev@muc.xmpp.org?join and for ignite realtime projects: xmpp:open_chat@conference.igniterealtime.org?join

  20. jonas’

    I made a thing: https://observe.jabber.network/ Feedback and other requests welcome. also announced in more detail on the operators@ mailing list

  21. Ge0rG

    Nice how nobody complains about the "accept all certificates" part.

  22. Jeybe

    Sound nice jonas’

  23. Jeybe

    Sounds nice jonas’

  24. jonas’

    Ge0rG, I guess it’s irrelevant in the context of ConnectionConfiguration.SecurityMode.disabled

  25. Guus

    jonas’: sent you an account in a one-on-one message. Unsure if it arrived due to lack of preexisting subscription.

  26. Ge0rG

    gaurav: your code will result in a very insecure application where hackers can steal users' passwords and read and manipulate everything they write

  27. gaurav

    Ge0rG i am totally new to this , can you help me understand what i might be doing wrong .

  28. Guus

    Someone here that has access to the tigase.org server?

  29. Guus

    It and the igniterealtime.org server are not playing nice.

  30. Maranda

    Guus out of curiousity why does igniterealtime.org query the version of each server connecting? :)

  31. Guus

    Maranda: stats

  32. southerntofu

    hey folks, i just noticed there's 3rd party requests on https://xmpp.org to google and github, thought i'd let you know in case you'd like to do something about it :P

  33. pep.

    southerntofu, I think there's already an issue for this, and I've seen activity on it not so long ago

  34. southerntofu

    thanks pep. have a good day! :)

  35. pep.

    :)