Skip to content

增加从面板获取节点证书和私钥#34

Open
sizzling9118 wants to merge 1 commit intowyx2685:mainfrom
sizzling9118:main
Open

增加从面板获取节点证书和私钥#34
sizzling9118 wants to merge 1 commit intowyx2685:mainfrom
sizzling9118:main

Conversation

@sizzling9118
Copy link
Copy Markdown
Contributor

新增 online 证书模式,支持从面板的 /api/v1/server/UniProxy/nodecert 接口获取 TLS 证书与私钥,并支持基于 ETag 的变更检测。

cert_mode=online 时,v2node 会在启动前先从面板拉取 certkey,校验证书与私钥是否合法、是否匹配、证书是否过期,以及是否与节点域名匹配,校验通过后写入本地 cert_file / key_file,再继续启动。运行过程中还会按 60 * PullInterval 的周期定时刷新本地缓存证书。

该改动仅影响 online 模式,不改变现有 filednshttpselfnone 等模式的行为。

@wyx2685
Copy link
Copy Markdown
Owner

wyx2685 commented Apr 14, 2026

这个你自己用吧不合

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