mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
Merge branch 'bugfix/mfg_tool' into 'main'
bugfix: mfg_tool don't support existing dac cert See merge request app-frameworks/esp-matter!507
This commit is contained in:
@@ -375,7 +375,10 @@ def write_per_device_unique_data(args):
|
|||||||
ca_cert = os.path.abspath(PAI['cert_der']), idf_target = args.target,
|
ca_cert = os.path.abspath(PAI['cert_der']), idf_target = args.target,
|
||||||
op_file = secure_cert_partition_file_path)
|
op_file = secure_cert_partition_file_path)
|
||||||
|
|
||||||
append_cn_dac_to_csv(UUIDs[int(row['Index'])], os.sep.join([OUT_DIR['top'], UUIDs[int(row['Index'])], "internal", "DAC_cert.pem"]))
|
if args.dac_key is not None and args.dac_cert is not None:
|
||||||
|
append_cn_dac_to_csv(UUIDs[int(row['Index'])], args.dac_cert)
|
||||||
|
else:
|
||||||
|
append_cn_dac_to_csv(UUIDs[int(row['Index'])], os.sep.join([OUT_DIR['top'], UUIDs[int(row['Index'])], "internal", "DAC_cert.pem"]))
|
||||||
|
|
||||||
# If serial number is not passed, then generate one
|
# If serial number is not passed, then generate one
|
||||||
if (args.serial_num is None):
|
if (args.serial_num is None):
|
||||||
|
|||||||
Reference in New Issue
Block a user