š Securing and extending connected devices
-
A connected device without security is a loaded gun pointed at your own network ā and MQTT isn't the answer to every device-side problem either. This companion post covers the two things that turn a working prototype into shippable firmware: locking it down, and reaching beyond MQTT where it fits.
Lock it down
Mutual TLS, done right. Server-only TLS leaves devices talking to impostors. Both sides prove identity ā the device verifies the server, the server verifies the device. Two field gotchas: actually validate the CA chain (skipping verification "temporarily" becomes permanent), and sync the clock first ā certificates look invalid on a device that thinks it's 1970.
ā Why security matters ā real attacks
ā Certificate-based auth and device tokensTrust the code you run. Secure boot stops modified firmware from executing; signed OTA with hash verification plus automatic rollback stops a bad or malicious update from bricking the fleet. Credentials live in protected on-device storage with a provisioning flow ā never as string literals in source. Assume anyone can dump your flash; design so a dump alone isn't enough.
ā The secure boot concept
ā Credential storage on the device
ā Secure OTA with signed firmwareReach beyond MQTT
HTTP/REST for on-device APIs and cloud calls, WebSocket for local dashboards, Modbus RTU for industrial sensors on RS-485 that isn't going away, and BLE provisioning so users can configure WiFi credentials without hardcoding them.
ā HTTP and REST from the device
ā WebSocket basics for local dashboards
ā Modbus RTU for industrial devices
ā BLE provisioning of WiFi credentials
Capstone
A fully connected, secure IoT device ā TLS-authenticated MQTT link to GrapesIoT, a clean topic schema, LWT-based presence detection, and offline buffering that survives a broker outage. Share your build in the lab submissions area when it's done.
Post questions here and tag with security, tls or ble. For the device-to-cloud path (networking, MQTT, patterns), see the companion post above.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better š
Register Login