Not able set relative path for user certs in config file

Why project config is not finding relative path of these files but absolute path works fine:

CONFIG_CHIP_FACTORY_DATA_USER_CERTS_DAC_CERT="certs/Chip-DAC-Cert.der"
CONFIG_CHIP_FACTORY_DATA_USER_CERTS_DAC_KEY="certs/Chip-DAC-Key.der"
CONFIG_CHIP_FACTORY_DATA_USER_CERTS_PAI_CERT="certs/Chip-PAI-Cert.der"
Parents Reply
  • Hello,

    Sorry for the late reply.

    Our Matter team said:

    If they are using our factory-data solution the base path is set to the ncs\modules\lib\matter\config\nrfconnect\chip-module, because it uses the origin of the CMake script. So if they provide "certs/Chip-DAC-Cert.der", it will point to ncs\modules\lib\matter\config\nrfconnect\chip-module\certs\Chip-DAC-Cert.der, which doesn't exist. Providing the absolute path is highly recommended in this case, instead of using relative paths.

    By the way, to use custom certificates, they must set CONFIG_CHIP_FACTORY_DATA_CERT_SOURCE_USER=y as well.

    Best regards,

    Edvin

Children
Related