mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4854] [Bug]: Certificate in TLS mode on the remote panel #3383
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#3383
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 @Kenaed on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4854
Describe the bug
2 servers - primary and secondary
The secondary one was added as a node
The remote control panel certificate is not installed correctly
How to reproduce the problem
When creating a connection from the primary server to the secondary server with TLS security and clicking "Install Panel Certificate," the primary server's certificate is entered. When saving this connection, the secondary server's kernel encounters an error due to an incorrect path to the certificate.
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.6
Xray-core version
26.6.1
How did you install 3x-ui?
install.sh script
Operating system
ubuntu 22.04
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
@github-actions[bot] commented on GitHub (Jun 3, 2026):
Thanks for filing a focused report — this confirms a real bug.
Confirmed root cause
The "Set Cert from Panel" button (
pages.inbounds.setDefaultCert) is implemented infrontend/src/pages/inbounds/form/useSecurityActions.ts, lines 112–134.When clicked, it calls
POST /panel/setting/alland reads the local panel'swebCertFile/webKeyFilesettings:This always queries the primary panel regardless of which node the inbound is assigned to. The file paths it inserts (e.g.
/root/cert/primary-domain/fullchain.pem) exist on the primary server but not on the secondary server.The backend sanitization in
web/runtime/remote.go(sanitizeStreamSettingsForRemote()) does not remove these paths either — it only strips file paths when inline certificate content is also present. When the cert is file-only (the typical result of using this button), the wrong primary-server paths are passed through unchanged to the remote node's Xray config, causing Xray to fail at startup.Workaround until a fix is released
Do not use "Set Cert from Panel" when creating/editing an inbound that is assigned to a remote node. Instead, manually type the certificate and key file paths as they exist on the secondary server's filesystem directly into the
Certificate fileandKey filefields.For example, if your secondary server's certificate lives at
/root/cert/secondary-domain/fullchain.pem, enter that path manually.If Xray on the secondary node is already failing because of incorrect paths that were inserted previously, you can correct the paths by editing the inbound from the primary panel and replacing the certificate file fields with the correct paths for the remote server.