### Install Dependencies Source: https://github.com/openshock/firmware/blob/develop/README.md Install project dependencies using pip. Ensure you have Python and pip installed. ```bash pip install -r requirements.txt ``` -------------------------------- ### Generate CA Certificate Bundle Source: https://github.com/openshock/firmware/blob/develop/certificates/README.md Run this script to download and verify the base CA certificate bundle. It also handles optional custom certificates. ```sh python3 gen_crt_bundle.py ``` -------------------------------- ### Flash OpenShock Firmware Source: https://github.com/openshock/firmware/blob/develop/RELEASE.md Use this command to write the OpenShock firmware binary to your microcontroller's flash memory. Ensure you have the correct firmware file name for your board and version. ```bash esptool write_flash 0x0 OpenShock_[board]_[version].bin ``` -------------------------------- ### Custom Certificate File Format Source: https://github.com/openshock/firmware/blob/develop/certificates/README.md Custom CA certificates must be placed in the custom_certs/ directory and each file must contain exactly one PEM certificate block. ```text custom_certs/ ``` -------------------------------- ### Verify CA Certificate Bundle Checksum Source: https://github.com/openshock/firmware/blob/develop/certificates/README.md Manually compare the SHA-256 checksum of the downloaded cacert.pem with the one published on curl.se. This step is mandatory for establishing external trust. ```sh sha256sum cacert.pem ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.