[GH-ISSUE #6660] [Bug]: Pinned Peer Cert SHA-256 doesnt update when domain ssl certificate renews #4448

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

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

  1. renew the doman ssl certificate
  2. go to security tab in inbound settings

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

  • 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 @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 1. renew the doman ssl certificate 2. go to security tab in inbound settings ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### 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 - [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:39:44 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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 (not cert.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.

<!-- gh-comment-id:5859261863 --> @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` (not `cert.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.
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#4448
No description provided.