Replies: 4 comments 4 replies
-
|
用singbox是不是就可以了 不影响 |
Beta Was this translation helpful? Give feedback.
-
|
使用方案二后还是不可行。看不懂错误提示: |
Beta Was this translation helpful? Give feedback.
-
|
经过实际测试方法2关闭证书验证也还是一样的错误提示.只能降低核心到26.1.23才正常用. |
Beta Was this translation helpful? Give feedback.
-
|
为什么我更新完后是这个错误: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
关于 跳过证书验证
allowInsecure参数被移除的说明📌 原因
Xray-core 在 v26.2.6 版本(2026年2月发布)中,正式移除了 TLS 配置中的
allowInsecure参数。allowInsecure: true的本意是"跳过 TLS 证书验证",这种做法存在一定的安全风险,因此 Xray 官方决定用更安全、更明确的证书固定(Certificate Pinning)机制来替代它。🔴 现在的状况
自 2026 年 6 月 1 日 起,所有使用了新版 Xray 内核的用户,只要配置中存在
allowInsecure字段(无论是true还是false),均会出现以下报错,导致内核无法启动:受影响的场景包括:
allowInsecure的节点配置insecure=1或allowInsecure=true参数时,v2rayN 会自动写入配置,从而触发此错误)✅ 解决方案
根据不同情况,有以下几种处理方式:
方案一:升级 v2rayN 至 7.22.5 / 升级 v2rayNG 至 2.2.3 ,(临时应急)
v2rayN 7.22.5 版本已临时恢复对"跳过证书验证"功能的支持,可作为过渡期解决方案。
📥 v2rayN 下载地址:https://github.com/2dust/v2rayN/releases/tag/7.22.5
📥 v2rayNG 下载地址:https://github.com/2dust/v2rayNG/releases/tag/2.2.3
方案二:关闭跳过证书验证(推荐·最简单)
如果你开启
allowInsecure仅仅是为了"方便连接",而服务器证书实际上是有效的,请直接在节点编辑页面中将"跳过证书验证"关闭(设为 false / 不勾选),保存后重试即可。方案三:使用
pinnedPeerCertSha256固定证书(最安全·长期方案)这是官方推荐的替代方案,需要先获取服务器的 TLS 证书 SHA256 指纹,然后填入配置。
获取证书指纹的命令(需要安装 OpenSSL):
将输出的哈希值填入 TLS 配置的
pinnedPeerCertSha256字段即可。📋 总结
allowInsecurepinnedPeerCertSha256pinnedPeerCertSha256Beta Was this translation helpful? Give feedback.
All reactions