Esp Secure Cert Mgr Skill logo

Esp Secure Cert Mgr Skill

Community
JasonYANG170
esp-secure-cert-mgr-skill

AI Skill for developing ESP-IDF firmware with the Espressif esp_secure_cert_mgr component, used to read, write, and verify PKI credentials (device cert, CA cert, private key, DS context) stored in the esp_secure_cert partition of pre-provisioned ESP modules. Trigger words: "esp_secure_cert", "esp_secure_cert_mgr", "secure cert", "pre-provisioning", "预置证书", "安全证书", "数字签名 DS", "Digital Signature", "PKI", "TLS 凭据", "esp_secure_cert partition", "ECDSA peripheral", "HMAC ECDSA", "secure boot v2"

Overview

PublisherJasonYANG170
Repositoryesp-dev-skill
Skill nameesp-secure-cert-mgr-skill
Stars
32
Forks
3
Bundled files
16
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 16 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by JasonYANG170 on GitHub. Read the source before you install it.

Installation

Install the Esp Secure Cert Mgr Skill AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/JasonYANG170/esp-dev-skill/tree/main/repos/esp_secure_cert_mgr
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/JasonYANG170/esp-dev-skill.git /tmp/esp-dev-skill
mkdir -p .claude/skills
cp -r /tmp/esp-dev-skill/repos/esp_secure_cert_mgr .claude/skills/esp-secure-cert-mgr-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Esp Secure Cert Mgr Skill in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Esp Secure Cert Mgr Skill on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Esp Secure Cert Mgr Skill is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

esp_secure_cert_mgr-skill

面向 Espressif esp_secure_cert_mgr 组件的 AI Skill。该组件为出厂预置(pre-provisioning)的 ESP 模块提供对 esp_secure_cert 分区中 PKI 凭据(设备证书、CA 证书、私钥、DS 上下文)的统一读取、写入与校验接口,分区默认采用 TLV 格式。本 Skill 提供场景化 recipes、完整 API 参考、配置项参考、常见坑点与真实示例索引,全部内容均来自仓库的真实文档与代码。

Core Principles

  1. 绝不臆造 API — 所有函数、结构体、宏、配置项必须能在 resources/ 或仓库 include/ / docs/ 中找到;找不到就省略,不要发明。
  2. 分区默认 TLV 格式 — esp_secure_cert 分区使用 TLV 格式(cust_flash_tlv)。legacy 格式(cust_flash、nvs)需通过 CONFIG_ESP_SECURE_CERT_SUPPORT_LEGACY_FORMATS 显式启用。
  3. 读取 API 必须配对 free — esp_secure_cert_get_device_cert() / get_ca_cert() / get_priv_key() 返回的指针,NVS 或 HMAC 加密场景会动态分配内存,必须用对应 esp_secure_cert_free_*() 释放。
  4. get_* 系列 API 仅返回 subtype 0 的条目 — 若分区中同一类型有多条目(不同 subtype),应改用通用 API esp_secure_cert_get_tlv_info() 并指定 type + subtype。
  5. DS 外设与裸私钥互斥编译 — 启用 CONFIG_ESP_SECURE_CERT_DS_PERIPHERAL(依赖 SOC_DIG_SIGN_SUPPORTED)时使用 esp_secure_cert_get_ds_ctx();未启用时使用 esp_secure_cert_get_priv_key()。头文件用 #ifdef 自动切换。
  6. 写入 API 要求 IDF >= 5.3 — esp_secure_cert_write.h 通过 ESP_SECURE_CERT_WRITE_SUPPORT 宏控制可用性;IDF < 5.3 编译时这些函数不可用。
  7. 写之前必须先擦除 — 闪存只能从 1 写到 0。esp_secure_cert_append_tlv() 默认 check_erase=true,未擦除会返回 ESP_ERR_SECURE_CERT_FLASH_NOT_ERASED。
  8. TLV 数据 16 字节对齐 — 写入时数据自动填充到 16 字节倍数以满足 Flash Encryption 写对齐要求(MIN_ALIGNMENT_REQUIRED)。
  9. unmap 后所有指针失效 — esp_secure_cert_unmap_partition() / esp_secure_cert_tlv_set_partition() 会解除分区映射,之前 read API 返回的指针立即失效,需重新调用。
  10. esp_secure_cert_tlv_set_partition() 切换活动分区 — 传 NULL 恢复默认主分区;OTA 暂存场景用于切到 staging 分区进行验证。
  11. HMAC 派生 ECDSA 私钥从不落盘 — 使用 esp_secure_cert_append_tlv_with_hmac_ecdsa_derivation() 仅写入 salt,私钥读取时通过 PBKDF2-HMAC-SHA256(2048 次迭代)从 eFuse HMAC key + salt 实时派生。需 SOC_HMAC_SUPPORTED 与 eFuse 中 HMAC_UP 用途的密钥。
  12. 签名校验依赖 Secure Boot V2 — CONFIG_ESP_SECURE_CERT_SECURE_VERIFICATION 依赖 SECURE_BOOT_V2_RSA_ENABLED 或 SECURE_BOOT_V2_ECDSA_ENABLED,应在启动时调用 esp_secure_cert_verify_partition_signature(NULL)。

When to Use

Applicable:

  • 在固件中读取预置的设备证书 / CA 证书 / 私钥用于 TLS 连接
  • 使用 DS(Digital Signature)外设保护 RSA 私钥(ESP32-S2/S3/C3/C5)
  • 使用 ECDSA 外设(eFuse 私钥)签名
  • 使用 HMAC 派生 ECDSA 私钥(密钥不落盘)
  • 运行时写自定义 TLV 用户数据 / 运行时 provisioning
  • 主机端在内存缓冲区中生成 esp_secure_cert 分区镜像
  • 对 esp_secure_cert 分区做完整性校验(SHA256)或签名校验(Secure Boot V2)
  • 对 esp_secure_cert 分区做 OTA 升级(unallocated space / passive OTA / direct)
  • 配置 partitions.csv、生成与烧录 esp_secure_cert 分区

Not applicable:

  • 非 ESP-IDF 平台(该组件依赖 ESP-IDF partition / eFuse / mbedTLS / PSA)
  • 通用 TLS / mbedTLS 用法问题(不涉及 esp_secure_cert 分区)
  • 生产 eFuse 烧录策略设计本身(仅涉及读写 esp_secure_cert 分区所需的那部分)

Scenario Quick Reference (Recipes)

当用户意图匹配下列场景时,先读对应 recipe,里面包含完整调用链、分步说明、常见错误与真实代码。

读取凭据

recipescenario
recipes/read_certs_and_key.md读取设备证书 / CA 证书 / 私钥(非 DS 场景)并释放内存
recipes/use_ds_peripheral.md使用 Digital Signature (DS) 外设获取 esp_ds_data_ctx_t 并验证密文
recipes/use_ecdsa_peripheral.md使用 ECDSA 外设(eFuse 私钥)签名,配合 mbedTLS/PSA
recipes/iterate_tlv_entries.md遍历/列出/通用查询任意 TLV 条目(esp_secure_cert_get_tlv_info / list_tlv_entries)

写入与 Provisioning

recipescenario
recipes/write_user_data.md运行时写入自定义 TLV 用户数据(flash 模式)
recipes/hmac_ecdsa_derivation.md写入 HMAC 派生 ECDSA 私钥配置(密钥不落盘)
recipes/generate_partition_in_buffer.md主机端在内存缓冲区中生成 esp_secure_cert 镜像

校验与 OTA

recipescenario
recipes/verify_partition.md启动时校验分区完整性(SHA256)与签名(Secure Boot V2)
recipes/ota_update_partition.md对 esp_secure_cert 分区做 OTA 升级(staging / passive / direct)
recipes/generate_partition_csv.md用 CSV 与 configure_esp_secure_cert.py 生成并烧录分区

esp_secure_cert Partition Format Reference

TLV 条目布局(来自 docs/write_support.md 与 esp_secure_cert_tlv_private.h)

┌────────────────────────────────────────────────���────────────┐
│                    TLV Header (12 bytes)                    │
├─────────┬────────┬────────┬──────────┬─────────┬───────────┤
│  Magic  │ Flags  │  Type  │ Subtype  │ Length  │ Reserved  │
│ 4 bytes │ 1 byte │ 1 byte │  1 byte  │ 2 bytes │  3 bytes  │
├─────────┴────────┴────────┴──────────┴─────────┴───────────┤
│                     Data (variable)                         │
├─────────────────────────────────────��───────────────────────┤
│                 Padding (16-byte aligned)                   │
├─────────────────────────────────────────────────────────────┤
│                   TLV Footer (4 bytes)                      │
│                       CRC32                                 │
└─────────────────────────────────────────────────────────────┘
  • Magic = 0xBA5EBA11(ESP_SECURE_CERT_TLV_MAGIC)
  • Header 结构 esp_secure_cert_tlv_header_t(packed,sizeof == 12),Footer esp_secure_cert_tlv_footer_t(sizeof == 4)
  • 生成分区时会在末尾自动追加 ESP_SECURE_CERT_INTEGRITY_TLV(SHA256)

partitions.csv 配置(来自 docs/format.md)

格式partitions.csv 行分区大小
TLV(默认 cust_flash_tlv)esp_secure_cert, 0x3F, , 0xD000, 0x2000, encrypted8 KiB
legacy cust_flashesp_secure_cert, 0x3F, , 0xD000, 0x6000, encrypted24 KiB
legacy nvsesp_secure_cert, data, nvs, 0xD000, 0x6000,24 KiB

自定义分区类型 0x3F,分区名常量 ESP_SECURE_CERT_TLV_PARTITION_NAME = "esp_secure_cert",类型常量 ESP_SECURE_CERT_TLV_PARTITION_TYPE = 0x3F。

TLV Type 枚举(来自 esp_secure_cert_tlv_config.h)

枚举值说明
ESP_SECURE_CERT_CA_CERT_TLV0CA 证书
ESP_SECURE_CERT_DEV_CERT_TLV1设备证书
ESP_SECURE_CERT_PRIV_KEY_TLV2私钥
ESP_SECURE_CERT_DS_DATA_TLV3DS 数据
ESP_SECURE_CERT_DS_CONTEXT_TLV4DS 上下文
ESP_SECURE_CERT_HMAC_ECDSA_KEY_SALT5HMAC-ECDSA 派生用的 salt
ESP_SECURE_CERT_TLV_SEC_CFG6安全配置(含 eFuse block id)
ESP_SECURE_CERT_TEE_SEC_STORAGE_KEY_TLV7TEE 安全存储密钥
ESP_SECURE_CERT_SIGNATURE_BLOCK_TLV8签名块(Secure Boot V2)
ESP_SECURE_CERT_INTEGRITY_TLV9完整性 SHA256
ESP_SECURE_CERT_TLV_END50末尾标记(用于取结束地址)
ESP_SECURE_CERT_USER_DATA_1 … USER_DATA_551 … 55用户自定义数据槽
ESP_SECURE_CERT_MATTER_TLV_1 / _2201 / 202Matter 项目专用(不要用于应用)
ESP_SECURE_CERT_TLV_MAX / _INVALID254 / 255边界

Subtype 枚举 ESP_SECURE_CERT_SUBTYPE_0 … ESP_SECURE_CERT_SUBTYPE_16(0–16),ESP_SECURE_CERT_SUBTYPE_MAX=254。

私钥类型枚举(来自 esp_secure_cert_read.h)

esp_secure_cert_key_type_t说明
ESP_SECURE_CERT_INVALID_KEY非法
ESP_SECURE_CERT_DEFAULT_FORMAT_KEY默认格式
ESP_SECURE_CERT_HMAC_ENCRYPTED_KEYHMAC 加密
ESP_SECURE_CERT_HMAC_DERIVED_ECDSA_KEYHMAC 派生 ECDSA
ESP_SECURE_CERT_ECDSA_PERIPHERAL_KEYECDSA 外设(eFuse)

TLV Flags(来自 esp_secure_cert_tlv_private.h)

宏值含义
ESP_SECURE_CERT_TLV_FLAG_HMAC_ENCRYPTION2 << 6需用 HMAC-AES-GCM 解密
ESP_SECURE_CERT_TLV_FLAG_HMAC_ECDSA_KEY_DERIVATION1 << 6启用 HMAC 派生 ECDSA 私钥
ESP_SECURE_CERT_TLV_FLAG_KEY_ECDSA_PERIPHERAL1 << 3ECDSA 密钥存于 eFuse

Critical Pitfalls (Must Read)

以下是最常见的错误,违反任一条都会导致固件不工作或数据损坏。

1. 读到的指针不释放(NVS / HMAC 场景泄漏内存)

c
// ❌ WRONG — NVS 或 HMAC 加密场景下 get_* 会 malloc,从不 free
char *cert = NULL; uint32_t len = 0;
esp_secure_cert_get_device_cert(&cert, &len);
// 用完直接丢弃 cert → 内存泄漏

// ✅ CORRECT — 用对应的 free API(仅当确实分配了内存才会真正释放)
char *cert = NULL; uint32_t len = 0;
if (esp_secure_cert_get_device_cert(&cert, &len) == ESP_OK) {
    // 使用 cert ...
    esp_secure_cert_free_device_cert(cert);
}

2. 同类型多条目却用便捷 API(只拿到 subtype 0)

c
// ❌ WRONG — 分区里 CA 证书有 subtype 0/1,只读到第一条
char *ca = NULL; uint32_t len = 0;
esp_secure_cert_get_ca_cert(&ca, &len);  // 永远只返回 subtype 0

// ✅ CORRECT — 用通用 API 指定 type + subtype
esp_secure_cert_tlv_config_t cfg = {
    .type = ESP_SECURE_CERT_CA_CERT_TLV,
    .subtype = ESP_SECURE_CERT_SUBTYPE_1,
};
esp_secure_cert_tlv_info_t info = {};
if (esp_secure_cert_get_tlv_info(&cfg, &info) == ESP_OK) {
    // 使用 info.data / info.length ...
    esp_secure_cert_free_tlv_info(&info);
}

3. 启用 DS 却调用了 get_priv_key(API 编译期互斥)

c
// ❌ WRONG — CONFIG_ESP_SECURE_CERT_DS_PERIPHERAL=y 时 get_priv_key 不存在
char *key = NULL; uint32_t len = 0;
esp_secure_cert_get_priv_key(&key, &len);  // 链接错误

// ✅ CORRECT — DS 场景用 get_ds_ctx,并配对 free_ds_ctx
esp_ds_data_ctx_t *ds = esp_secure_cert_get_ds_ctx();
if (ds) {
    // 使用 ds->esp_ds_data, ds->rsa_length_bits, ds->efuse_key_id ...
    esp_secure_cert_free_ds_ctx(ds);
}

4. 写入前未擦除(默认 check_erase 为 true)

c
// ❌ WRONG — 直接 append,旧数据未擦 → ESP_ERR_SECURE_CERT_FLASH_NOT_ERASED
esp_secure_cert_tlv_info_t tlv = { .type = ESP_SECURE_CERT_USER_DATA_1,
                                   .subtype = ESP_SECURE_CERT_SUBTYPE_0,
                                   .data = buf, .length = n, .flags = 0 };
esp_secure_cert_append_tlv(&tlv, NULL);  // 返回 FLASH_NOT_ERASED

// ✅ CORRECT — 先擦除(生产设备慎用,会清空所有凭据)
esp_secure_cert_erase_partition();
esp_secure_cert_append_tlv(&tlv, NULL);

5. IDF 版本低于 5.3 却调用写入 API

c
// ❌ WRONG — IDF < 5.3 时 ESP_SECURE_CERT_WRITE_SUPPORT 未定义,链接不到符号
esp_secure_cert_append_tlv(&tlv, NULL);

// ✅ CORRECT — 用宏守卫,或升级 IDF >= 5.3
#ifdef ESP_SECURE_CERT_WRITE_SUPPORT
    esp_secure_cert_append_tlv(&tlv, NULL);
#else
    ESP_LOGE(TAG, "write APIs need ESP-IDF >= 5.3");
#endif

6. 误用已释放指针 / unmap 后悬空

c
// ❌ WRONG — unmap 后继续用之前 get 返回的 flash 指针
esp_secure_cert_get_device_cert(&cert, &len);
esp_secure_cert_unmap_partition();
printf("%s", cert);  // 悬空,行为未定义

// ✅ CORRECT — unmap 前把数据拷走,或 unmap 后重新 get
char *cert = NULL; uint32_t len = 0;
esp_secure_cert_get_device_cert(&cert, &len);
char *copy = malloc(len); memcpy(copy, cert, len);
esp_secure_cert_free_device_cert(cert);
esp_secure_cert_unmap_partition();
// 之后用 copy

7. 切换活动分区后未复位 NULL(OTA 校验完仍读 staging)

c
// ❌ WRONG — 验证完 staging 后忘记切回主分区
esp_secure_cert_tlv_set_partition(staging);
esp_secure_cert_verify_partition_integrity();
// 后续读取仍走 staging,主分区没更新

// ✅ CORRECT — 校验/复制完成后显式复位
esp_secure_cert_tlv_set_partition(staging);
esp_secure_cert_verify_partition_integrity();
// ... copy staging → primary ...
esp_secure_cert_tlv_set_partition(NULL);  // 切回主分区

8. 用 cust_flash/nvs 分区却按 TLV 调用

c
// ❌ WRONG — legacy 格式未启用 SUPPORT_LEGACY_FORMATS,但分区是 nvs/cust_flash
// 头文件里 get_tlv_info / get_priv_key_type 在 legacy 下不可用

// ✅ CORRECT — legacy 分区需启用 CONFIG_ESP_SECURE_CERT_SUPPORT_LEGACY_FORMATS=y
// 并继续用 get_device_cert / get_ca_cert(NVS 自动动态分配)

9. partitions.csv 没加 encrypted 标志(开了 Flash Encryption 会读到密文)

ini
# ❌ WRONG — 启用 Flash Encryption 后分区内容会被加密存储,未标记导致读出密文
esp_secure_cert, 0x3F, , 0xD000, 0x2000,

# ✅ CORRECT — TLV 格式加上 encrypted 标志
# Name, Type, SubType, Offset, Size, Flags
esp_secure_cert, 0x3F, , 0xD000, 0x2000, encrypted

10. ECDSA 外设签名未先取 efuse block id

c
// ❌ WRONG — 直接 mbedtls_pk_parse_key 解析 eFuse 里的 ECDSA 私钥(根本读不到)
mbedtls_pk_parse_key(&pk, priv_key, priv_key_len, NULL, 0);

// ✅ CORRECT — 先判断 key_type,ECDSA_PERIPHERAL 时用 efuse_block 配 opaque key
esp_secure_cert_key_type_t kt;
esp_secure_cert_get_priv_key_type(&kt);
if (kt == ESP_SECURE_CERT_ECDSA_PERIPHERAL_KEY) {
    uint8_t efuse_blk;
    esp_secure_cert_get_priv_key_efuse_id(&efuse_blk);
    esp_ecdsa_pk_conf_t pk_conf = { .grp_id = MBEDTLS_ECP_DP_SECP256R1,
                                    .efuse_block = efuse_blk };
    esp_ecdsa_set_pk_context(&pk, &pk_conf);  // IDF < 6.0 / mbedTLS < 4.x 路径
}

11. HMAC 派生 ECDSA 误以为私钥在分区里

c
// ❌ WRONG — 以为能从分区读出明文 ECDSA 私钥
esp_secure_cert_get_priv_key(&key, &len);  // 派生场景返回的是 121 字节 DER,且实时算出

// ✅ CORRECT — salt 落盘,私钥读取时由 PBKDF2-HMAC-SHA256(salt, hmac_key, 2048) 派生
// 写入侧:
uint8_t salt[32]; esp_fill_random(salt, sizeof(salt));
esp_secure_cert_erase_partition();
esp_secure_cert_append_tlv_with_hmac_ecdsa_derivation(
    salt, sizeof(salt), ESP_SECURE_CERT_SUBTYPE_0, NULL);
// 读取侧:esp_secure_cert_get_priv_key() 会自动派生 121 字节 DER 私钥

12. 签名校验未启用 Secure Boot 依赖

c
// ❌ WRONG — 未开 CONFIG_ESP_SECURE_CERT_SECURE_VERIFICATION 就调用
esp_secure_cert_verify_partition_signature(NULL);  // 链接错误或语义无效

// ✅ CORRECT — Kconfig 依赖 SECURE_BOOT_V2_RSA_ENABLED 或 SECURE_BOOT_V2_ECDSA_ENABLED
// sdkconfig.defaults:
//   CONFIG_ESP_SECURE_CERT_SECURE_VERIFICATION=y
#if CONFIG_ESP_SECURE_CERT_SECURE_VERIFICATION
    if (esp_secure_cert_verify_partition_signature(NULL) != ESP_OK) {
        ESP_LOGE(TAG, "signature verification FAILED");
    }
#endif

13. 误用 Matter 专用 TLV 类型

c
// ❌ WRONG — 用 201/202 存自己的数据
.type = ESP_SECURE_CERT_MATTER_TLV_1,  // 文档明确禁止应用使用

// ✅ CORRECT — 用 ESP_SECURE_CERT_USER_DATA_1..5(51..55)
.type = ESP_SECURE_CERT_USER_DATA_1,

Execution Workflow

StepNameDescription
1Plan明确需求:只读凭据?DS 外设?ECDSA 外设?HMAC 派生?运行时写?OTA 升级?校验签名?
2Recipe在 recipes/ 中匹配场景,先读对应 recipe 获取完整调用链
3Queryrecipe 未覆盖的 API 查 resources/api_reference.md;配置项查 resources/config_reference.md
4Validate校验头文件包含、Kconfig 依赖(DS/HMAC/ECDSA/SecureVerification)、IDF 版本(写需 >= 5.3)、partitions.csv 格式与 encrypted 标志
5Confirm向用户确认:include 列表、分区表行、init/读取/释放顺序、写前的擦除与备份策略
6Execute新工程:参照 resources/example_list.md 选最近示例(examples/esp_secure_cert_app 或 esp_secure_cert_ota_example)改造;已有工程:原地编辑
7Check核对:get/free 配对、DS vs 裸私钥的编译分支、unmap/set_partition 后指针失效、写前擦除
8Buildidf.py set-target <chip> → idf.py build
9Provision用 configure_esp_secure_cert.py(CSV 或命令行)生成并烧录 esp_secure_cert.bin 到 0xD000
10Verify串口 idf.py monitor 看日志,签名/完整性校验 PASSED

Failure Strategies

SituationAction
API 在 resources/ 找不到立即停止,告知用户该 API 不存在
get_* 返回 ESP_FAIL检查分区是否已生成并烧录、partitions.csv 是否正确、是否启用了 legacy 支持
写入返回 FLASH_NOT_ERASED先 esp_secure_cert_erase_partition();生产设备务必先备份
写入返回 TLV_ALREADY_EXISTS同 type+subtype 已存在,换 subtype 或先擦除
写入返回 HMAC_KEY_NOT_FOUNDeFuse 未烧 HMAC_UP 用途密钥,先烧 eFuse
写入符号链接失败IDF < 5.3,升级或用宏守卫
DS 相关 API 不可见检查 SOC_DIG_SIGN_SUPPORTED 与 CONFIG_ESP_SECURE_CERT_DS_PERIPHERAL
ECDSA 外设签名失败确认 SOC_ECDSA_SUPPORTED、efuse block id 正确、mbedTLS/PSA 版本分支
OTA 后读到旧数据确认复制完成后 esp_secure_cert_tlv_set_partition(NULL) 复位

References

  • 场景 recipes → recipes/ 目录
  • 完整 API 参考 → resources/api_reference.md
  • 配置项参考 → resources/config_reference.md
  • 常见坑点汇总 → resources/pitfalls.md
  • 示例工程索引 → resources/example_list.md
  • 仓库真实文档:
    • espressif-repos/esp_secure_cert_mgr/README.md
    • espressif-repos/esp_secure_cert_mgr/docs/format.md
    • espressif-repos/esp_secure_cert_mgr/docs/write_support.md
    • espressif-repos/esp_secure_cert_mgr/docs/esp_secure_cert_tools/secure_verification.md
    • espressif-repos/esp_secure_cert_mgr/docs/esp_secure_cert_tools/configure_esp_secure_cert_csv.md
    • espressif-repos/esp_secure_cert_mgr/tools/README.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Esp Secure Cert Mgr Skill AI skill do?

AI Skill for developing ESP-IDF firmware with the Espressif esp_secure_cert_mgr component, used to read, write, and verify PKI credentials (device cert, CA cert, private key, DS context) stored in the esp_secure_cert partition of pre-provisioned ESP modules. Trigger words: "esp_secure_cert", "esp_secure_cert_mgr", "secure cert", "pre-provisioning", "预置证书", "安全证书", "数字签名 DS", "Digital Signature", "PKI", "TLS 凭据", "esp_secure_cert partition", "ECDSA peripheral", "HMAC ECDSA", "secure boot v2"

Why use Esp Secure Cert Mgr Skill on TypingMind?

Because you install it once and use it with any model. Esp Secure Cert Mgr Skill is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Esp Secure Cert Mgr Skill in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/JasonYANG170/esp-dev-skill/tree/main/repos/esp_secure_cert_mgr. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Esp Secure Cert Mgr Skill?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Esp Secure Cert Mgr Skill?

As many as you like. As long as a model supports skills, you can use Esp Secure Cert Mgr Skill with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Esp Secure Cert Mgr Skill AI skill free?

Yes. It is published on GitHub by JasonYANG170 under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇