mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6660] [Bug]: Pinned Peer Cert SHA-256 doesnt update when domain ssl certificate renews #4448
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#4448
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 @NethminaYasas on GitHub (Sep 26, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6660
Describe the bug
Pinned Peer Cert SHA-256 doesnt update when domain ssl certificate renews, we manually have to change it when domain renews
How to reproduce the problem
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.8.5
Xray-core version
26.9.9
How did you install 3x-ui?
install.sh script
Operating system
ubuntu 24.04
Which parts of the panel are affected?
Xray config generation
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
No — direct access
Before submitting
@MHSanaei commented on GitHub (Sep 27, 2026):
This is expected behaviour. The pin is a fixed value, and the leaf certificate's hash changes on every renewal. Having the panel update it automatically wouldn't help much either: clients that already imported a link keep the old pin and would still fail until they refresh.
Instead, pin the issuing CA rather than the leaf. Xray accepts a pin that matches a CA in the served chain and then verifies the leaf against it, so renewals don't break the pin. In the inbound's TLS settings, point the certificate at
fullchain.pem(notcert.pem) and press the "pin from certificate" button. That adds the intermediate CA's hash along with the leaf's. Let's Encrypt picks between several intermediates at random (e.g. R10/R11 for RSA, E5/E6 for ECDSA), so add the hashes of all current intermediates for your key type.