Skip to content

TLS client: Use Xray-core's built-in RootCAs by default (avoids maliciously injected CA in the OS) - #7105

Merged
RPRX merged 1 commit into
mainfrom
CA
Oct 10, 2026
Merged

RPRX merged 1 commit into
mainfrom
CA

Conversation

@Fangliding

Copy link
Copy Markdown
Member

以前是不方便打包 后来发现go有 那接入就很简单了

@Fangliding

Copy link
Copy Markdown
Member Author

打包的证书链大概154 kb
顺便这样也能直接使用ISRG Root X3和未来的Cloudflare CA了(虽然大概率是买一个交叉签名)

@RPRX

RPRX commented Oct 8, 2026

Copy link
Copy Markdown
Member

我想了下,core 里的那些 TLS 请求都得改成默认这个,然后环境变量控制,好不好改?因为有些可能是直接 GET https://

另外有个吊销问题,操作系统和浏览器对于吊销的响应可能更加及时,浏览器似乎经常查的,但我们这里只能等升级 core 版本

@RPRX

RPRX commented Oct 8, 2026

Copy link
Copy Markdown
Member

看看近些年 CA 被吊销的情况多不多,另外 Go TLS 也是不查 leaf 证书是否已被吊销的,浏览器似乎会查

@Fangliding

Copy link
Copy Markdown
Member Author

改内部请求怕不是有点麻烦而且无法调整
因为丑闻被吊销的CA应该不多 而且哪怕旧情况很多平台也更新缓慢 大多数情况下是浏览器云控下发黑名单

@RPRX

RPRX commented Oct 8, 2026

Copy link
Copy Markdown
Member

如果近些年经常有 CA 被取缔的话,或许取这个 CA 库和系统 CA 的交集?好不好做?如果有些系统取不到 CA 就只用 bundled

@Fangliding

Fangliding commented Oct 8, 2026 •

Copy link
Copy Markdown
Member Author

被取缔的非常少 这得是上新闻的级别 因为每个广泛使用的CA都可能攻击无法更新的设备 所以本来添加就很谨慎
然后本来这个改动就来自在安卓跑Linux arm会取不到ca

@RPRX

RPRX commented Oct 10, 2026

Copy link
Copy Markdown
Member

目前只覆盖底层传输显式调用 TLS/uTLS(但不含 REALITY 的 spiderX),后续会改成覆盖 core 内所有 TLS 请求、环境变量开关

另外 config.go 这个文件是不是有点复杂了,感觉有些代码可以换成 Golang 的内置函数

@RPRX RPRX changed the title Use bundle CA as default TLS client: Use built-in CA by default Oct 10, 2026
@RPRX RPRX changed the title TLS client: Use built-in CA by default TLS client: Use built-in CAs by default Oct 10, 2026
@RPRX RPRX changed the title TLS client: Use built-in CAs by default TLS client: Use built-in RootCAs by default Oct 10, 2026
@RPRX
RPRX merged commit 8cab2bf into main Oct 10, 2026
@RPRX RPRX changed the title TLS client: Use built-in RootCAs by default TLS client: Use Xray-core's built-in RootCAs by default Oct 10, 2026
@RPRX RPRX changed the title TLS client: Use Xray-core's built-in RootCAs by default TLS client: Use Xray-core's built-in RootCAs by default (avoids maliciously injected CA in the OS) Oct 10, 2026
@RPRX
RPRX deleted the CA branch November 19, 2026 12:26
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.

2 participants