Add Chrome Root Store certificate option

Adds `chrome` as a new certificate store option alongside `mozilla`.
Both stores filter out China-based CA certificates.
This commit is contained in:
世界
2025-12-21 15:13:24 +08:00
parent 0d8c7a9c5d
commit cba18635c8
6 changed files with 2934 additions and 9 deletions

2817
common/certificate/chrome.go Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -53,6 +53,8 @@ func NewStore(ctx context.Context, logger logger.Logger, options option.Certific
}
case C.CertificateStoreMozilla:
systemPool = mozillaIncluded
case C.CertificateStoreChrome:
systemPool = chromeIncluded
case C.CertificateStoreNone:
systemPool = nil
default: