# XMPP node startTLS

**URL:** <https://discourse.nodered.org/t/xmpp-node-starttls/52811>\
**Category:** General\
**Created:** [27 October 2021 08:29 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811 "2021-10-27T08:29:46Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![cthompstone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cthompstone/32/47899_2.png) [@cthompstone](https://discourse.nodered.org/u/cthompstone)\
**Post date:** [27 October 2021 08:29 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/1 "2021-10-27T08:29:46Z")

</div>

Just trying to use the XMPP node with public servers on the internet.  
They all use starttls or SSL or the like...  
Does this node not support such things? Since I can't get it to connect to any public servers I've tried.  
Thanks  
Chris

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 October 2021 09:01 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/2 "2021-10-27T09:01:12Z")

</div>

Certainly used to ... any servers in particular ?

---

<div class="post-metadata">

**Author:** ![cthompstone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cthompstone/32/47899_2.png) [@cthompstone](https://discourse.nodered.org/u/cthompstone)\
**Post date:** [27 October 2021 09:06 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/3 "2021-10-27T09:06:17Z")

</div>

I have tried [jabber.uk](http://jabber.uk) and chat.sum7.eu ... so far.  
Says connection error on both.  
Think it's because the node doesn't do encryption maybe?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 October 2021 11:10 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/4 "2021-10-27T11:10:04Z")

</div>

xmpp.is seems to work. normally things like openfire use port 5223 for xmpps but that doesn't seem to work either. We are using the main [xmpp.js/packages/client at main · xmppjs/xmpp.js · GitHub](https://github.com/xmppjs/xmpp.js/tree/main/packages/client) library - but even the simple examples they have don't seem to connect...

---

<div class="post-metadata">

**Author:** ![cthompstone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cthompstone/32/47899_2.png) [@cthompstone](https://discourse.nodered.org/u/cthompstone)\
**Post date:** [27 October 2021 12:00 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/5 "2021-10-27T12:00:22Z")

</div>

Thanks for that. So your finding the same?  
although xmpp.is does work for you?  
But those I've tried don't work for you either?

Thanks again

---

<div class="post-metadata">

**Author:** ![cthompstone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cthompstone/32/47899_2.png) [@cthompstone](https://discourse.nodered.org/u/cthompstone)\
**Post date:** [27 October 2021 12:58 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/6 "2021-10-27T12:58:04Z")

</div>

looks like xmpp.is works, but in order to send from my phone I have to disable encryption in the app.  
Which isn't ideal...  
The app is saying that the recipient (node-red) doesn't support OMEMO encryption.  
Is that anything to worry about?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 October 2021 13:27 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/7 "2021-10-27T13:27:26Z")

</div>

not ideal but indeed maybe a clue.  
OMEMO is an extension for encrypting one to one chats I think... and no I would be surprised if this client library supported it, as it's an optional extra - [XEP-0384: OMEMO Encryption](https://xmpp.org/extensions/xep-0384.html)

---

<div class="post-metadata">

**Author:** ![cthompstone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cthompstone/32/47899_2.png) [@cthompstone](https://discourse.nodered.org/u/cthompstone)\
**Post date:** [27 October 2021 13:37 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/8 "2021-10-27T13:37:05Z")

</div>

OK.. Have a hard time with this.  
Using xmpp.is , unencrypted, created a private room with my phone app.  
Seems to work when messaged directly from phone to node-red  
invited the node-red to a private room (created using phone)  
then changed the node to: Buddy = roomname@muc.xmpp.is  
But it never sees the messages sent to the room....  
Think maybe it a bad job and I should give up, lol.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 October 2021 13:48 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/9 "2021-10-27T13:48:53Z")

</div>

Working good here

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/1/c1d8e45179d3c32cc9cf602ef713a0fb3dfc990c.png)

---

<div class="post-metadata">

**Author:** ![cthompstone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cthompstone/32/47899_2.png) [@cthompstone](https://discourse.nodered.org/u/cthompstone)\
**Post date:** [27 October 2021 13:49 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/10 "2021-10-27T13:49:47Z")

</div>

was that created as a 'private room' ?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 October 2021 13:50 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/11 "2021-10-27T13:50:16Z")

</div>

No was one I just "found" there.  
then again - just created one with a password.. also ok.

---

<div class="post-metadata">

**Author:** ![cthompstone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cthompstone/32/47899_2.png) [@cthompstone](https://discourse.nodered.org/u/cthompstone)\
**Post date:** [27 October 2021 13:52 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/12 "2021-10-27T13:52:06Z")

</div>

OK, I'm using the room as an IN node.  
and the room was created as 'private room'

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 October 2021 14:06 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/13 "2021-10-27T14:06:20Z")

</div>

The desktop client I am using (Swift) just has enter room and then set password on it - and it automatically creates and configures it...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/8/18221e8507d0a09c7495e82e62d6eab6cd548b6a.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/4/94acc4355be2967efd3de82cc3f88af527db3fa7.png)

---

<div class="post-metadata">

**Author:** ![cthompstone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cthompstone/32/47899_2.png) [@cthompstone](https://discourse.nodered.org/u/cthompstone)\
**Post date:** [27 October 2021 14:09 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/14 "2021-10-27T14:09:57Z")

</div>

Thanks  
I think maybe the node-red doesn't auto join the room.  
So not sure how to do that, perhaps login elsewhere...  
Seems to be really difficult. been at it for hours. about to give up as been to hard.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 October 2021 14:17 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/15 "2021-10-27T14:17:52Z")

</div>

auto-join works - but I'm not sure auto-create does. If you have created with phone then Node-RED should join ok.

---

<div class="post-metadata">

**Author:** ![cthompstone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cthompstone/32/47899_2.png) [@cthompstone](https://discourse.nodered.org/u/cthompstone)\
**Post date:** [27 October 2021 14:20 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/16 "2021-10-27T14:20:55Z")

</div>

yeah it would not join.  
I restarted the whole xmpp node, server setup and all, then it suddenly joined.  
Thanks for your help.  
Weird thing is after messing with it for awhile you start to get many duplicated messages coming in.  
Chris

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 December 2021 14:21 UTC](https://discourse.nodered.org/t/xmpp-node-starttls/52811/17 "2021-12-26T14:21:40Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
