Urgent.News

What's breaking now, across thousands of outlets.

Tech

AWS IoT: Step by step guide on fleet provisioning with CSR using ESP32-S3

1. Introduction: Fleet provisioning with CSR Fleet provisioning is a secure method where an IoT device generates its own private key locally and sends a CSR to AWS to obtain a uniquely signed X.509 client certificate upon its first connection. How it works: Local Key Generation : The device creates its own private key and a CSR on the device itself. The private key never leaves the device.…

AWS IoT provides a secure method for fleet provisioning, enabling IoT devices to generate their own private keys and request uniquely signed X.509 client certificates upon their first connection. The process involves local key generation on the device, sending a CSR to AWS IoT Core, and then receiving the signed certificate. This method enhances security, as the private key remains on the device and cannot be transmitted or exposed during manufacturing.

It is particularly useful for hardware that utilizes a secure element, where private keys cannot be imported. Additionally, the method allows for custom certificate authorities, enabling self-managed signing with the use of a custom Public Key Infrastructure (PKI), as well as the ability to use custom validity periods and algorithms.

To implement fleet provisioning using the ESP32-S3, the setup requires Ubuntu 26.04 LTS, the esp-idf v5.5.5, and the esp-aws-iot repository. The folder structure for the demo includes the esp/, esp-aws-iot/, examples/fleet_provisioning/ and esp-idf/ directories. After setting up the environment and building the example, you can proceed with creating a provisioning policy, a claim certificate, an IAM role for fleet provisioning, and a thing policy.

The provisioning policy defines permissions and controls for creating cloud resources, connected devices, and attaching security policies. The claim certificate, a shared, bootstrap X.509 certificate and private key, is pre-installed on devices during manufacturing. An IAM role is necessary for AWS IoT to create, configure, and register resources on your behalf.

Finally, a thing policy is created for the device thing, which is generated during fleet provisioning. Using the provided JSON content, policies can be created and attached to the respective certificates and things in the AWS IoT Core.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

[quick-revisit]: MongoDB Indexes & B-Trees

The Mental Model A MongoDB collection without an index is like a cookbook without an index section—finding a single recipe requires flipping through all 500 pages.

  • MongoDB indexes function like cookbook indexes for quick document retrieval.
  • MongoDB uses B-Trees to organize index keys for logarithmic lookup times.

How to Truly Full-Screen Window in macOS Stage Manager (Even with an External Keyboard!)

Have you ever settled in to work on your Mac, turned on Apple’s Stage Manager to keep your desktop organized, and tried to maximize a window—only to watch macOS stubbornly leave a giant empty strip on…

  • Fn + Control + F shortcut doesn't work with external keyboards in Stage Manager mode
  • Fill mode stretches window edge-to-edge while keeping Stage Manager active
  • Create custom shortcut Control + Option + F in macOS Keyboard settings

Leave a Replay Script, Not a Transcript

A backend engineer opened a pull request at sixteen forty after an afternoon spent steering a coding agent. The ticket claimed the pagination bug was gone, the tests were green, and the cache key no…

  • Replay script captures agent's actions, not understanding
  • Replay script must be reproducible on any machine
  • Spike passes if script runs successfully without original chat directory

More from Saturday 19 September →