Skip to content

Warn when MQTT uses SSL without a CA certificate - #1340

Merged
gskjold merged 1 commit into
mainfrom
mqtt-ssl-no-ca-warning
Dec 4, 2026
Merged

gskjold merged 1 commit into
mainfrom
mqtt-ssl-no-ca-warning

Conversation

@gskjold

@gskjold gskjold commented Nov 26, 2026

Copy link
Copy Markdown
Member

Why

When SSL is enabled for MQTT and no CA certificate is uploaded, the firmware connects with setInsecure(): the connection is encrypted, but the broker's certificate is not verified, so the device cannot tell the real broker from an impostor. The configuration page gave no hint of this; a user could tick SSL and reasonably assume the connection was fully secured.

Changes

  • The MQTT section of the configuration page shows a yellow warning under the Upload CA / cert / key row while SSL is enabled and no CA is uploaded: "No CA uploaded: the server's identity is not verified". It disappears when a CA is uploaded and returns if the CA is deleted.
  • New string conf.mqtt.no_ca in localazy/source/en.json, with the English text as fallback in the page.
  • ui/dist rebuilt.

It is a warning only: saving is not blocked and the connection behaviour is unchanged.

Verification

  • npm run build and pio run -e esp32s2 succeed.
  • Not viewed in a browser or on a device.

🤖 Generated with Claude Code

@gskjold gskjold added this to the v2.6.1 milestone Dec 4, 2026
@gskjold
gskjold force-pushed the mqtt-ssl-no-ca-warning branch from f59bcb7 to b487d88 Compare December 4, 2026 09:20
Without an uploaded CA the firmware connects with setInsecure(): the
connection is encrypted, but the broker's certificate is not verified.
The configuration page gave no hint of this. Show a warning under the
certificate buttons while SSL is enabled and no CA is uploaded.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@gskjold
gskjold force-pushed the mqtt-ssl-no-ca-warning branch from b487d88 to f580351 Compare December 4, 2026 09:40
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

🔧 PR Build Artifacts

Version: f580351

All environments built successfully. Download the zip files:

Artifacts expire after 7 days. View workflow run

@gskjold
gskjold merged commit 3e9c471 into main Dec 4, 2026
8 checks passed
@gskjold
gskjold deleted the mqtt-ssl-no-ca-warning branch December 4, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant