mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[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
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#3234
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 @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.
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
@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!!