You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[nrf fromlist][nrfconnect] Refactor of the factory data support
Refactored Factory Data Support:
- Added some useful tips to the Factory Data Guide.
- The SPAKE2+ verifier is now generated by default with each build.
- The Test Certification Declaration can now be generated separately
and no longer requires the generation of the DAC and PAI certificates.
- The Rotating Device ID Unique ID can be used and generated only if
the CONFIG_CHIP_ROTATING_DEVICE_ID is set to 'y'.
Each factory data parameter has its default value reflected in the Kconfig.
813
+
The list below shows some Kconfig settings that are configured in the nRF Connect build system and have an impact on the application.
814
+
You can modify them to achieve the desired behavior of your application.
815
+
816
+
* The device uses the test certificates located in the `credentials/development/attestation/` directory, which are generated using all default values.
817
+
If you want to change the default `vendor_id`, `product_id`, `vendor_name`, or `device_name` and generate new test certificates, add the `CONFIG_CHIP_FACTORY_DATA_CERT_SOURCE_GENERATED=y` Kconfig option.
818
+
Remember to build the `chip-cert` application and add it to the system PATH.
819
+
820
+
For developing a production-ready product, you need to write the certificates obtained during the certification process.
821
+
To do this, add the `CONFIG_CHIP_FACTORY_DATA_CERT_SOURCE_USER=y` Kconfig option and set the appropriate paths for the following Kconfig options:
822
+
823
+
* `CONFIG_CHIP_FACTORY_DATA_USER_CERTS_DAC_CERT`
824
+
* `CONFIG_CHIP_FACTORY_DATA_USER_CERTS_DAC_KEY`
825
+
* `CONFIG_CHIP_FACTORY_DATA_USER_CERTS_PAI_CERT`
826
+
827
+
* By default, the SPAKE2+ verifier is generated during each example's build. This means that this value will change automatically if you change any of the following parameters:
828
+
829
+
* `CONFIG_CHIP_DEVICE_SPAKE2_PASSCODE`
830
+
* `CONFIG_CHIP_DEVICE_SPAKE2_SALT`
831
+
* `CONFIG_CHIP_DEVICE_SPAKE2_IT`
832
+
833
+
You can disable the generation of the SPAKE2+ verifier by setting the `CONFIG_CHIP_FACTORY_DATA_GENERATE_SPAKE2_VERIFIER=n` Kconfig option.
834
+
Then, you will need to provide the externally-generated SPAKE2+ verifier using the `CONFIG_CHIP_DEVICE_SPAKE2_TEST_VERIFIER` Kconfig value.
835
+
836
+
* Generating the rotating device ID unique ID is disabled by default, but you can enable it by setting the `CONFIG_CHIP_ROTATING_DEVICE_ID=y` and `CONFIG_CHIP_DEVICE_GENERATE_ROTATING_DEVICE_UID=y` Kconfig values.
837
+
Moreover, if you set the `CONFIG_CHIP_ROTATING_DEVICE_ID` Kconfig option to `y` and disable the `CONFIG_CHIP_DEVICE_GENERATE_ROTATING_DEVICE_UID` Kconfig option, you will need to provide it manually using the `CONFIG_CHIP_DEVICE_ROTATING_DEVICE_UID` Kconfig value.
838
+
839
+
* You can generate the test Certification Declaration by using the `CONFIG_CHIP_FACTORY_DATA_GENERATE_CD=y` Kconfig option.
840
+
Remember to build the `chip-cert` application and add it to the system PATH.
0 commit comments