MQTT node doesn't have TLS; only SSL

Describe the problem/error/question

I’m trying to get MQTT wired up to my HiveMQ cluster. I have this successfully working both locally using MQTTExplorer and in a cloud Node-RED instance. However, the same configuration does not work in a local n8n instance. The only difference I can see is that both MQTTExplorer and Node-RED allow me to explicitly state TLS; n8n doesn’t have this option. I have tried to fiddle with all the available options, but it just won’t connect.

What is the error message (if any)?

No MQTT connection made.

Please share your workflow

Unnecessary as MQTT is the only node right now.

Share the output returned by the last node

N/A

Information on your n8n setup

  • n8n version: Community Edition
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Not sure what this is. Sorry.
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Windows 11

welcome to the n8n community @fischgeek
n8n MQTT does support TLS - go to Credentials > MQTT > Protocol: mqtts (port 8883) + add SSL CA Cert from HiveMQ. “SSL” options appear there (Client Cert/Key). Works exactly like MQTTExplorer! Tested it :rocket:

1 Like

Hi! Thanks for the reply. I do not have a cert from Hive. I don’t use a cert with MQTTExplorer or Node-RED. Are you using a cert?

EDIT: Never mind. Something you said made me realize I just needed to simply switch to Mqtts. :man_facepalming:

1 Like

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