当系统 openssl.cnf 为 req 设置 x509_extensions 时,CA 证书会获得重复的关键基本约束扩展 — 导致 macOS 失去信任(ERR_CERT_AUTHORITY_INVALID)
作者: bilinkis创建于 2026年9月22日更新于 2026年9月23日
$ openssl version OpenSSL 1.1.1t 7 Feb 2023 $ openssl version -d OPENSSLDIR: "/Users/me/miniconda3/ssl" $ grep -n "x509_extensions|v3_ca" "/Users/me/miniconda3/ssl/openssl.cnf" 60:x509_extensions = usr_cert 112:x509_extensions = v3_ca # inside [ req ] 226:[ v3_ca ]
$ rm -r ~/.portless && portless trust Generated local CA certificate. Local CA added to system trust store.
内容来源: vercel-labs/portless