[GH-ISSUE #4683] [Bug]: Hysteria 2 was created with a fixed peer certificate SHA-256 selected, but it is not in the shared link. #3234

Closed
opened 2026-10-31 20:30:59 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @berrychiao71-tech on GitHub (May 30, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4683

Describe the bug

Hysteria 2 was created with a fixed peer certificate SHA-256 selected, but it is not in the shared link.

Image Image

Therefore, I manually entered the "pinnedPeerCertSha256" parameter, which was not present in the shared link, into the client.

Furthermore, when using the Xray core with v2rayN, setting the allowsecure option to false or true, and adding a certificate fingerprint SHA256 to the fixed certificate, still fails to establish a connection. However, when using the Singbox core, setting the allowsecure option to true allows normal connection operation.

Is the issue due to a mismatch between the hex and base64 formats of "pinnedPeerCertSha256"?

How to reproduce the problem

1.Hysteria 2 was created with a fixed peer certificate SHA-256 selected, but it is not in the shared link.

2.Therefore, I manually entered the "pinnedPeerCertSha256" parameter, which was not present in the shared link, into the client.

3.Furthermore, when using the Xray core with v2rayN, setting the allowsecure option to false or true, and adding a certificate fingerprint SHA256 to the fixed certificate, still fails to establish a connection. However, when using the Singbox core, setting the allowsecure option to true allows normal connection operation.

4.Is the issue due to a mismatch between the hex and base64 formats of "pinnedPeerCertSha256"?

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.2.0

Xray-core version

26.5.9

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu24

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @berrychiao71-tech on GitHub (May 30, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4683 ### Describe the bug Hysteria 2 was created with a fixed peer certificate SHA-256 selected, but it is not in the shared link. <img width="593" height="516" alt="Image" src="https://github.com/user-attachments/assets/4153fbac-ed7b-4049-892e-84ebc69e1a3b" /> <img width="602" height="152" alt="Image" src="https://github.com/user-attachments/assets/3392d913-9dac-4e67-b287-e8640891041f" /> Therefore, I manually entered the "pinnedPeerCertSha256" parameter, which was not present in the shared link, into the client. Furthermore, when using the Xray core with v2rayN, setting the allowsecure option to false or true, and adding a certificate fingerprint SHA256 to the fixed certificate, still fails to establish a connection. However, when using the Singbox core, setting the allowsecure option to true allows normal connection operation. Is the issue due to a mismatch between the hex and base64 formats of "pinnedPeerCertSha256"? ### How to reproduce the problem 1.Hysteria 2 was created with a fixed peer certificate SHA-256 selected, but it is not in the shared link. 2.Therefore, I manually entered the "pinnedPeerCertSha256" parameter, which was not present in the shared link, into the client. 3.Furthermore, when using the Xray core with v2rayN, setting the allowsecure option to false or true, and adding a certificate fingerprint SHA256 to the fixed certificate, still fails to establish a connection. However, when using the Singbox core, setting the allowsecure option to true allows normal connection operation. 4.Is the issue due to a mismatch between the hex and base64 formats of "pinnedPeerCertSha256"? ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.2.0 ### Xray-core version 26.5.9 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu24 ### Which parts of the panel are affected? _No response_ ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:30:59 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@berrychiao71-tech commented on GitHub (May 30, 2026):

I've solved it. For those using this panel, if you're using a Let's Encrypt certificate (the one provided by the panel) and don't have a domain, this certificate is not a self-signed certificate! This is because Let's Encrypt introduced a feature in 2026 that provides certificates for plain IP addresses, lasting 7 days, and then the panel automatically renews them. So what we need to do is fill in your IP address as the SNI in the panel; you don't need to use a fixed certificate from the other end! (This will change as the certificate expires; I think the panel developers should be aware of this, so they don't include this parameter in the shared link, but unfortunately, there's no related explanation.)

This way, you can directly import it into v2rayN through a subscription; nothing else is needed.

Gemini gave me so many misleading error messages!! Until Doubao enlightened me!!

<!-- gh-comment-id:4582651752 --> @berrychiao71-tech commented on GitHub (May 30, 2026): I've solved it. For those using this panel, if you're using a Let's Encrypt certificate (the one provided by the panel) and don't have a domain, this certificate is not a self-signed certificate! This is because Let's Encrypt introduced a feature in 2026 that provides certificates for plain IP addresses, lasting 7 days, and then the panel automatically renews them. So what we need to do is fill in your IP address as the SNI in the panel; you don't need to use a fixed certificate from the other end! (This will change as the certificate expires; I think the panel developers should be aware of this, so they don't include this parameter in the shared link, but unfortunately, there's no related explanation.) This way, you can directly import it into v2rayN through a subscription; nothing else is needed. Gemini gave me so many misleading error messages!! Until Doubao enlightened me!!
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#3234
No description provided.