Explainer
Controller MQTT TLS support: what the documentation must confirm
Short answer
A vendor statement that secure MQTT is on the roadmap is not a capability you can design around. Treat MQTT over TLS as confirmed only when the released firmware documentation names it for your controller and firmware version, including certificate handling and client authentication. Until then, put a separate edge PC or gateway between the controller and the TLS-protected broker and keep the controller's link plain inside the plant network.
On this page
If a vendor's answer on MQTT security for a controller is that secure MQTT is on the roadmap, the answer for design purposes is no. A planned feature is not a capability: nothing in the current firmware can be configured, commissioned or held to a test. Design only against what the released firmware documentation names for your exact model and version, and when TLS is not documented, keep the controller on plain MQTT inside the plant network while a separate edge PC or gateway carries the encrypted leg to the broker. This article sets the evidence standard for that decision, works an example of scoring a real feature list, and ends with the decision for each case.
What counts as confirmed support #
Confirmed means the released operating manual, firmware feature list or command reference for your controller model at the firmware version in service names the capability. Three sources never count: a marketing page, a roadmap statement, and any answer that describes planned development without a firmware version. The manual entry is the only artifact that travels with firmware you can install today; it is the thing that names the parameter, the port and the certificate handling you will configure at the cabinet.
Scope the check the way you would a BIOS setting. A secure MQTT client documented for one model at one firmware version says nothing about that vendor's other controllers, about earlier or later firmware on the same model, or about how another vendor names the same function. Some runtimes deliver MQTT only through an add-on library — the MQTT Client SL library on a CODESYS controller is one example — and then the library documentation, not the controller brochure, is the evidence you check. Where nothing names TLS for the MQTT client, the controller's MQTT is plain, and the design starts from that fact.
The five items the documentation must name #
Score the evidence against five checks, with one pass condition: all five. A TLS client without documented certificate handling cannot be commissioned against a broker that verifies identities, so partial documentation is unconfirmed documentation.
- Model and firmware scope: the document is the released manual for your model at your firmware version, not a protocol note or a webinar slide.
- Secure client named: the MQTT client section names TLS as a client capability with the encrypted listener — MQTT over TLS runs on TCP port 8883, and a plain listener stays on 1883.
- Trust handling: the CA certificate format, how it is imported, where the controller stores it, and what happens when the broker's certificate is renewed.
- Client identity: client-certificate and private-key support for mutual TLS, and where that key is generated or stored, if the broker authenticates devices.
- Failure behavior: the TLS version the stack negotiates and what the client logs and does when certificate verification fails.
Why a roadmap mention cannot be a design input #
A roadmap item carries no scope: no firmware version, no listener port, no certificate model, and nothing a commissioning test can target. Vendors answer these questions without dates because feature details change during development, so a statement that secure MQTT has been requested and planned is a signal of intent and nothing more. The same test catches the common workaround proposal: a controller whose documentation names no tunnel client fails exactly like one whose documentation names no TLS client. Until documentation exists, the honest architecture treats the controller as a plain-MQTT device and puts the security boundary one host away, where you own the software.
The bridge that works today #
The pattern needs nothing from the controller beyond its documented plain client. The controller publishes to an MQTT client or broker on an edge PC inside the cell network, and the edge PC runs the TLS session toward the plant's cloud broker. Two hops result, and only one leaves the building: the edge-to-broker hop crosses the untrusted WAN, so that is the hop TLS must cover, with the edge PC verifying the broker's certificate chain and presenting its own client certificate when the broker requires mutual authentication. The controller-to-edge hop stays inside the plant, so segment it — segmenting edge platform networks for data, BMC and OS traffic gives the layout that keeps data traffic off shared links. The broker must expose a secure listener for this, and listener configuration differs by product: how a broker listener is configured for TLS 1.3 shows one documented example.
The trust side has its own moving parts, because broker certificates rotate and the verifying client must follow: how TLS certificates secure a dynamic MQTT broker covers that relationship from the broker's side. For the edge side, published walk-throughs map the whole pattern: bridging OPC UA PLC data to MQTT with an edge PC covers controller-side translation, bridging a local Mosquitto broker to a cloud broker covers the two-hop layout, and configuring MQTT TLS certificates in Node-RED on an edge PC covers the renewal the edge client eventually faces. If no PC stands at the cell today, a fanless mini PC mounted beside the controller takes the role; its job is to keep the cryptography off the controller.
Worked example: scoring a released feature list #
The following manual is invented for the example, in the shape real ones take. Chapter Communication, current firmware: an MQTT client with publish and subscribe to a configurable broker, TCP port 1883, username and password. Chapter Security: TLS documented for the built-in web server and for file transfer; the MQTT section is never mentioned. Score the five checks. Scope passes, because the document is the released manual for the model and firmware in service. Secure client fails, trust fails, identity fails, failure behavior fails. The arithmetic: 5 checks required, 1 passes, 4 fail, and the pass condition is 5 of 5, so the feature is unconfirmed. Decision: the controller is a plain-MQTT device; publish to an edge host and encrypt the WAN hop from there.
The same scoring produces a direct-connection decision when the evidence is complete, so here is the contrasting illustrative manual. The MQTT section names TLS with the broker's CA certificate imported to controller storage, mutual TLS with a client certificate and its storage listed, a negotiable TLS version, and verification failures logged without retry. All five checks pass for this model at this firmware version: connect the controller directly to a broker that accepts a username and password inside TLS, and to one that requires client certificates. The decision follows the checks, not the vendor's enthusiasm.
Never trade verification for a connection that works #
One safety rule sits above the whole exercise. Some client toolkits ship a verification mode that accepts any certificate — it often appears in code as VERIFY_NONE — and it belongs on the lab bench only. A session that skips verification is encrypted but unauthenticated: any host answering at the broker's address can terminate it, so sealed data is handed to whoever is listening. When a handshake fails against a real broker, the fault is almost always in the trust chain — the controller clock, a missing intermediate CA, a hostname in the certificate that does not match the broker address — and the fix belongs in that chain, never in the check.
The decision, case by case #
| What the released documentation names for your model and firmware version | Decision |
|---|---|
| All five checks pass | Connect the controller directly to the secure broker, and put CA and client-certificate renewal in the maintenance plan. |
| TLS and CA handling documented, client certificate not, broker accepts a username and password inside TLS | Direct connection confirmed for that broker configuration; mutual TLS against that broker is not, so keep that combination out of the design. |
| TLS named only for other services, a roadmap mention, or silence | Treat the controller as a plain-MQTT device: publish to an edge PC or gateway and encrypt the WAN hop from there. |
| A VPN client offered instead of TLS | Same five checks: no documented tunnel client, no design on it — use the edge bridge. |
The commitment runs both ways. When the documentation names the feature, design on it and hold commissioning to what is written. When it does not, do not negotiate with the gap: an edge PC between the controller and the broker is configuration you own end to end, while an undocumented security feature is a schedule risk you discover at commissioning.
Questions asked
Is there an encrypted MQTT port a plain client can upgrade to mid-connection?
No. Unlike HTTP, MQTT has no mid-session upgrade to TLS: the client must open the TLS handshake before any MQTT packet flows, on TCP port 8883, while an unencrypted listener stays on 1883. A controller that documents only the plain port therefore has no path to an encrypted session, whatever the broker offers.
Does TLS alone prove the controller's identity to the broker?
No. Server-side TLS proves the broker's identity to the client and encrypts the session in both directions. If the broker must also know which device connects, the client needs its own certificate and private key, which is mutual TLS, and the controller documentation must name that support and the key storage. A username and password inside TLS authenticate the account, not the hardware.
What exactly should I ask the vendor for?
Ask for the released operating manual or firmware feature list for your exact model and firmware version, and require it to name the MQTT over TLS client with its encrypted listener port, the CA certificate format, import path and storage, client-certificate support if your broker uses mutual TLS, and the TLS version plus verification-failure behavior. A reply that offers a roadmap position, a planned release or a beta lacks every one of these items.
Can a VPN tunnel on the controller substitute for MQTT over TLS?
It moves encryption from the MQTT client to the network layer: the controller keeps speaking plain MQTT inside the tunnel, and the tunnel protects whatever rides in it, MQTT included. That is a legitimate design only when the tunnel client is itself a documented feature for your firmware version. An undocumented tunnel fails the same five checks as undocumented TLS, which is why the edge bridge is the safer default.
How do I prove the edge bridge link is actually encrypted before trusting it?
Commission it with evidence, not trust: capture the edge PC's traffic toward the broker once at setup and again after every certificate renewal. A working TLS session shows an encrypted application-data stream with no readable topics or payloads, and the handshake must fail if the broker presents a certificate your CA did not sign. Both observations together confirm the verification path is live.