IMD SolutionComputing LibraryShop main store

Explainer

Why Node-RED needs no certificates for a Talk2m HTTPS API

Edge computing and IIoT Published 5 min read

Short answer

None. The HTTP Request node runs TLS because the URL is https, and an empty TLS configuration field leaves the runtime to negotiate the protocol version and validate the server chain against its built-in trust store. Talk2m dropped TLS 1.0 and 1.1 from its production servers, so your working request already proves the handshake succeeds; fill the certificate slots only when an actual error names a trust or client-authentication failure.

On this page
  1. What the empty TLS field on the node does
  2. Which slot would take which file
  3. When the field earns a configuration
  4. Worked example: one request from a client still offering TLS 1.0
  5. Keeping the connection working when the floor moves
  6. Questions asked

You need no certificate, private key or CA file for this call. The Talk2m Web API runs over HTTPS, and your HTTP Request node already speaks it: the vendor has updated its production servers and no longer supports TLS 1.0 or TLS 1.1, so a flow that still returns data has completed an acceptable handshake with the field you worried about left empty. The certificate slots in the node's edit dialog belong to an optional TLS configuration node that overrides runtime defaults; they are not the switch that turns encryption on. Below is what the empty field actually does, which file would go in which slot if an error ever demands one, and the arithmetic behind why your request keeps working.

What the empty TLS field on the node does #

The HTTP Request node takes its encryption from the URL, not from that field. An https URL makes the request a TLS request; the field's only job is to hand the node a TLS configuration node when you want to override what the runtime does by default. Node-RED's documentation for this node points to that configuration node for its TLS options, and nothing in it is mandatory.

With the field empty, the Node.js runtime negotiates the protocol version, validates the server's certificate chain against its built-in trust store and offers no client certificate. The proof is in the reply itself: the API endpoint no longer serves the retired versions, and a plaintext exchange there cannot return your data.

One documented trap argues for keeping the field empty too: a TLS configuration node carrying a servername or an ALPN entry has been reported to make this node's request fail outright. An empty field cannot hit that defect.

Which slot would take which file #

Start from what each file is for. The server's own certificate is never yours to upload: the server presents it during the handshake, and validating it is the client's job, one your runtime already does. No vendor-issued client certificate, private key or CA file is documented for this API, so there is nothing to obtain.

TLS configuration slot What the file does When you would set it
Certificate Identifies your client to a server that demands mutual TLS Only if the API documentation or an error demands client authentication, with a pair issued by your own PKI
Private key Unlocks that client certificate Never on its own; a key without its certificate does nothing
CA certificate Adds a trust root the runtime lacks Only on an untrusted-chain error, after confirming out-of-band that the chain is genuine

One line you should never take: switching off server-certificate verification to make an error disappear keeps the connection encrypted to whoever answers, not necessarily to the real API. That option is the one setting here that actually removes security.

When the field earns a configuration #

Make the decision from the error text, not from the empty field:

  • The request returns data and the debug sidebar shows no error: leave everything as it is. This is your current state.
  • The error names an untrusted, unknown or self-signed chain: put the server chain's root in the CA certificate slot, once you have confirmed the chain belongs to the vendor.
  • The API documentation or the response demands a client certificate: issue a certificate and private key pair from your own PKI and load both slots.
  • The handshake fails after a runtime or server change: update Node-RED and Node.js instead of pinning a protocol version or adding files.

This is the opposite of the MQTT and Sparkplug side of the same palette, where the broker's trust genuinely lives in certificate files: configuring MQTT TLS certificates in Node-RED on an edge PC walks through that case. An HTTPS call to a public API has no broker and no mutual authentication, so the same nodes stay empty.

Worked example: one request from a client still offering TLS 1.0 #

The inputs:

  • Server floor: TLS 1.2, from the vendor's statement that its production servers were updated and that clients on the older versions must move to 1.2 or later.
  • Client offer (illustrative): TLS 1.0, 1.1 and 1.2, standing in for a runtime of the kind that still offered the retired versions alongside the current one.
  • Your flow: an https URL, an empty TLS field, and a request that returns production data.

The rule: the handshake selects the highest version that appears on both lists, and an empty overlap fails the connection before a single HTTP byte moves.

The arithmetic:

  • Versions offered: 3 (the client list above)
  • Versions the floor removes: 2 (the two retired ones)
  • Shared versions: 3 − 2 = 1

The result: the handshake negotiates the one shared version, TLS 1.2, and the request completes with the field still empty.

The decision: zero TLS errors means zero TLS configuration; keep the node as it is. The threshold is the first error that names a trust chain or client authentication. At that point, and only then, use the slot table above.

Keeping the connection working when the floor moves #

The vendor retired two versions in one cleanup and will eventually retire more. Your protection against the next round is a current runtime, because protocol negotiation lives in the TLS library that Node.js ships with, not in your flow. A maintained Node-RED and Node.js pair absorbs a raised floor without a change; an old one fails the handshake, and that failure is the signal to update the runtime, not to add certificate files or pin versions.

If a request stops working, capture the exact error text before changing anything, and separate the three failure classes: protocol negotiation, trust, and the API's own login check. Each has a different fix, and only two of them involve the TLS configuration node at all.

Questions asked

Can I pin the flow to one TLS version to be safe?

Pinning buys nothing here and costs resilience. The runtime already refuses the retired versions, and the handshake exists so both ends can move: when the server retires another version, a pinned flow stops while a negotiating one keeps running. Reserve the version settings in the TLS configuration node for a peer that negotiates badly, and remove them once that peer is repaired.

Is the Talk2m login part of the TLS setup?

No. The API checks the credentials you send inside the encrypted channel; that is application-level authentication, and no certificate changes its verdict. You can tell the two failures apart by what arrives: a rejected login comes back as a normal HTTP response with an error body, while a TLS failure ends the connection before any HTTP response exists.

How do I record which TLS version the connection uses?

From the Node-RED host, open a test handshake to the API hostname with a command-line TLS client such as the one that ships with OpenSSL and read the protocol line in the session summary. That shows what a current client negotiates with the server, which brackets what your flow sees. Write the result down with the date, because the answer changes whenever either end is updated.

Would generating a self-signed certificate help?

No. A self-signed certificate convinces no one: the server does not ask for client authentication, and a self-signed root in the CA slot would only teach your runtime to accept a chain it should question. Keys that guard nothing add rotation work without adding protection, so leave the slots empty until an error or the API documentation asks for a specific file.

Keep reading

  • How-to

    Configuring MQTT TLS certificates in Node-RED on an edge PC

    Configure the MQTT node's own TLS inputs: the broker's CA chain always, the client certificate and private key when the broker requires mutual TLS. A platform certificate store is invisible to Node-RED until the installed integration exposes it, so use persistent files unless store support is verified, and renew in a staged 30-day window.

    Edge computing and IIoT

  • Troubleshooting

    Fix MQTT sensor data missing in Node-RED

    A green MQTT connection in Node-RED proves only a broker session, not that the GSM module published a value or that the flow subscribes to its topic. An http in node cannot receive MQTT publications at all: use an mqtt in node. Trace RS-485 acquisition, publish result, broker identity and topic match in order, and fix the first stage with no positive result.

    Edge computing and IIoT

  • Explainer

    Securing ctrlX MQTT data paths to AWS or GCP

    Yes — Node-RED plus Mosquitto can carry ctrlX Data Layer values under X.509 authentication and TLS 1.2, but each of the three connections (publisher to broker, device to broker, uploader to cloud) needs its own trust and client-certificate configuration. DeviceBridge joins only when the chosen AWS or GCP service's protocol calls for it.

    Edge computing and IIoT

Why InfluxDB Cloud needs no uploaded certificates