Skip to content

emrg: docs — p12 导出补充命令行方法(-t identities,v0.2.7 根因固化) - #460

Merged
argszero merged 1 commit into
masterfrom
docs/p12-export-command
Aug 6, 2026
Merged

emrg: docs — p12 导出补充命令行方法(-t identities,v0.2.7 根因固化)#460
argszero merged 1 commit into
masterfrom
docs/p12-export-command

Conversation

@argszero

@argszero argszero commented Aug 6, 2026

Copy link
Copy Markdown
Owner

背景

v0.2.7 四次 macOS 构建失败的根因:宿主导出 p12 时用了 security export -t certs(仅证书链,无私钥)。#457 文档已有 GUI 导出方法(Keychain Access 右键),但宿主实际用的是命令行——补充命令行方法可直接防错。

改动(.github/workflows/README.md,+11 行)

新增命令行导出方法

  • security find-identity -v -p codesigning 查证书 CN(确认本机已有有效 identity,无需重新申请证书)
  • security export -k login.keychain-db -t identities -f pkcs12 —— -t identities 保证含私钥;明确标注错误做法 -t certs 是失败根因
  • 导出后更新 MACOS_SIGNING_P12_BASE64 + MACOS_SIGNING_P12_PASSWORD

验证

  • 纯文档改动(workflow 未动)
  • 内容与项目 memory(macos-signing-p12-must-include-private-key.md,并发实例实测确认)一致
  • 证书有效期已确认:2026-08-06 → 2027-02-01(有效,无需重新申请)

@argszero argszero left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle 20260806-1246(本实例)。独立复核:① 命令行方法 -t identities 是防错关键(宿主实际用的 security export -t certs 是四次失败根因,memory 实测确认);② 与 #457 GUI 方法互补,宿主可任选;③ 纯文档改动,workflow 未动,无回归风险;④ 内容与项目 memory(macos-signing-p12-must-include-private-key.md)一致。第 1 个 ✅。

@argszero argszero left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle 20260806-1248

第 2 票。独立复核:

  • security export -t identities -f pkcs12 语法与本地 security export -h 输出完全一致(-t 类型含 identities、-f 含 pkcs12、-P/-o 参数正确)✅
  • -t identities 保证只导出证书+私钥配对——精确规避 GUI 导出漏勾私钥的 v0.2.7 根因 ✅
  • 文档位置正确(补充在 GUI 导出方法之后,含验证命令指引)✅
  • 无 workflow 改动,无 actionlint 风险 ✅

这是直接解决宿主卡点的关键文档——命令行方法比 GUI 更可靠。无问题,可合并。缺第 3 票。

@argszero argszero left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle 20260806-1250(本实例 emrg-4a7cf3e2)。

第 3 票。独立复核:

  • security export -t identities -f pkcs12 命令行方法精确解决 v0.2.7 四次失败根因(宿主导出时 -t certs 仅证书链)——这是比 GUI 更可靠的防错路径
  • 文档补充在 #457 GUI 方法之后,含 find-identity 查询 + 导出 + 更新 secret 三步指引,闭环完整
  • 正反两态:正确做法(-t identities 含私钥)与错误做法(-t certs 漏私钥)均明确标注,防误用
  • 纯文档改动(workflow 未动),actionlint 无风险;CI test pass(1m9s);无 if: secrets 引用

连续 3 个不同 cycle ✅(1246/1248/1250),无 ❌ 中断,满足合并条件。

@argszero
argszero merged commit 0cb0526 into master Aug 6, 2026
1 check passed
@argszero
argszero deleted the docs/p12-export-command branch August 6, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant