[GH-ISSUE #4816] [Question]: allowInsecure???? #3350

Closed
opened 2026-10-31 20:31:49 +07:00 by bsakaguchi · 2 comments
Owner

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

  • I read the Wiki and searched existing issues.
  • This is a usage question, not a bug report.
  • This question is written in English.
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 - [x] I read the [Wiki](https://github.com/MHSanaei/3x-ui/wiki) and searched [existing issues](../issues?q=is%3Aissue). - [x] This is a usage question, not a bug report. - [x] This question is written in English.
bsakaguchi 2026-10-31 20:31:49 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@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 — means allowInsecure is in an outbound config, not an inbound. Adding the Pinned SHA-256 to the inbound won't help here.

What to do

  1. Go to the Outbounds section in the panel and find the outbound that has TLS settings (likely the one with tag proxy or a Hysteria2 outbound).
  2. In that outbound's TLS settings, find the "Pinned Peer Cert SHA-256" field and enter your server's certificate fingerprint.
  3. Use Hex format (e.g. 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)

openssl s_client -connect YOUR_SERVER:PORT </dev/null 2>/dev/null \
  | openssl x509 -fingerprint -sha256 -noout \
  | sed 's/SHA256 Fingerprint=//;s/://g' \
  | tr '[:upper:]' '[:lower:]'

This outputs the hash in lowercase hex without colons, which is exactly what Xray and the panel expect.

Important note

pinnedPeerCertSha256 is not a drop-in replacement for allowInsecure: true. allowInsecure skipped all verification; pinnedPeerCertSha256 pins 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 allowInsecure in 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 without allowInsecure.

Let us know if the issue persists after updating the outbound settings!

<!-- gh-comment-id:4603635782 --> @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` — means `allowInsecure` is in an **outbound** config, not an inbound. Adding the Pinned SHA-256 to the inbound won't help here. ### What to do 1. **Go to the Outbounds section** in the panel and find the outbound that has TLS settings (likely the one with tag `proxy` or a Hysteria2 outbound). 2. In that outbound's TLS settings, find the **"Pinned Peer Cert SHA-256"** field and enter your server's certificate fingerprint. 3. **Use Hex format** (e.g. `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) ```bash openssl s_client -connect YOUR_SERVER:PORT </dev/null 2>/dev/null \ | openssl x509 -fingerprint -sha256 -noout \ | sed 's/SHA256 Fingerprint=//;s/://g' \ | tr '[:upper:]' '[:lower:]' ``` This outputs the hash in lowercase hex without colons, which is exactly what Xray and the panel expect. ### Important note `pinnedPeerCertSha256` is **not** a drop-in replacement for `allowInsecure: true`. `allowInsecure` skipped all verification; `pinnedPeerCertSha256` pins 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 `allowInsecure` in 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 without `allowInsecure`. Let us know if the issue persists after updating the outbound settings\!
Author
Owner

@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.

<!-- gh-comment-id:4613455962 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3350
No description provided.