Skip to content

v0.4.8 — 修复 Windows 10 证书信任问题

Choose a tag to compare

@DASungta DASungta released this 17 Apr 14:02
· 7 commits to main since this release

修复

Windows 10 证书信任问题(Issue #9 后续)

v0.4.7 修复了安装校验,但证书 profile 与 Windows 10 Schannel / Chromium 130 严格校验不兼容,导致:

  • curl (schannel):CRYPT_E_NO_REVOCATION_CHECK (0x80092012)
  • Trae IDE:http: TLS handshake error from 127.0.0.1:xxxxx: EOF

根因:CA 证书声明了 KeyUsageCRLSign,却没有 CRLDistributionPoints 扩展,Schannel 发起 CRL 查询但找不到端点,触发撤销检查失败。

本次修复(v2 证书 profile):

v0.4.7 及更早 v0.4.8
CA KeyUsage CertSign | CRLSign CertSign(去掉 CRLSign)
CA MaxPathLen 未设 0(MaxPathLenZero=true)
服务器 KeyUsage DigitalSignature DigitalSignature | KeyEncipherment
服务器 ExtKeyUsage ServerAuth ServerAuth | ClientAuth
服务器 IP SAN 127.0.0.1
TLS 握手链 仅叶子 叶子 + CA 完整链

自动迁移

trae-proxy init 会自动检测旧 profile CA,并执行无感知迁移:

[init] detected legacy CA profile (v0.4.7 or earlier), regenerating for Windows 10 compatibility...

升级方法:

trae-proxy update
trae-proxy init   # Windows 需管理员 PowerShell;macOS/Linux 需 sudo

Windows 10 用户操作步骤

  1. 以管理员身份打开 PowerShell
  2. trae-proxy update
  3. trae-proxy init(自动迁移旧 CA,重新安装信任)
  4. trae-proxy restart

迁移完成后 curl / Trae IDE 的 TLS 握手错误应消失。如仍有问题,请在 Issue #9 回复日志。

Full Changelog: v0.4.7...v0.4.8