secure_ota

Example of the component argenox/noxtls v0.2.50
# NoxTLS secure OTA (ESP-IDF)

Reference secure firmware update flow:

1. HTTPS download via NoxTLS TLS 1.3.
2. Stream image into OTA partition.
3. Compute SHA-256 while downloading.
4. Optionally enforce expected SHA-256 from config.
5. Mark next boot partition on success.

## Build

```sh
cd noxtls/ports/esp-idf/examples/secure_ota
idf.py set-target esp32s3
idf.py build flash monitor -p COM34
```

## Important

- Replace `main/certs/root_ca.pem` with the CA for your OTA server.
- Set `NOXTLS_SECURE_OTA_EXPECTED_SHA256_HEX` for integrity pinning.
- Secure Boot and Flash Encryption are controlled by ESP-IDF bootloader/security config; this app logs whether those configs are enabled.

To create a project from this example, run:

idf.py create-project-from-example "argenox/noxtls=0.2.50:secure_ota"

or download archive (~7.12 KB)