mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4816] [Question]: allowInsecure???? #3350
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3350
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mcmagnus1 on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4816
What are you trying to do?
in xray kernel version 26.6.1, you can no longer use the allowInsecure parameter.
returns error: Failed to start: main: failed to load config files: [config.json] > infra/conf: failed to build outbound config with tag proxy > infra/conf: failed to build stream settings for outbound detour > infra/conf: Failed to build TLS config. > common/errors: The feature "allowInsecure" has been removed and migrated to "pinnedPeerCertSha256". Please update your config(s) according to release note and documentation.
the actual question is: where is the function of adding this certificate in the panel (the panel certificate has been added) or has it not been implemented yet??? It is especially interesting about Hysterya2
What have you already tried?
I added the Pinned SHA-256 peer certificate to the inbound, but this did not solve the problem.
3x-ui version
3.2.6
How did you install 3x-ui?
install.sh script
Operating system
ubuntu 24_
Screenshots or config snippets
No response
Before submitting
@github-actions[bot] commented on GitHub (Jun 2, 2026):
Thanks for the detailed report!
The key point: The error you're seeing —
failed to build outbound config with tag proxy— meansallowInsecureis in an outbound config, not an inbound. Adding the Pinned SHA-256 to the inbound won't help here.What to do
proxyor a Hysteria2 outbound).e8e2d3...) — do not Base64-encode it. There is a known misleading tooltip on this field (see #4793, recently resolved).How to get your server's certificate SHA-256 (Hex)
This outputs the hash in lowercase hex without colons, which is exactly what Xray and the panel expect.
Important note
pinnedPeerCertSha256is not a drop-in replacement forallowInsecure: true.allowInsecureskipped all verification;pinnedPeerCertSha256pins a specific certificate. If you don't have control over the certificate or don't know its hash in advance, you'll need to set up a proper trusted certificate on the server.If the outbound config was saved before upgrading to Xray 26.6.1
The panel no longer generates
allowInsecurein new configs, but an existing outbound created with an older version may still have it in the database. Re-saving the outbound after setting the Pinned SHA-256 field should generate a clean config withoutallowInsecure.Let us know if the issue persists after updating the outbound settings!
@mcmagnus1 commented on GitHub (Jun 3, 2026):
According to Hysteria2, everything is clear. But there remains a problem with VLESS, in the reality tab there is no field for entering a certificate fingerprint.