-
DescriptionI have set up a TriliumNext sync server on a Raspberry Pi at 192.168.88.24:65443, configured to use HTTPS with a self-signed certificate. On my Windows 10 client, I launch Trilium using the trilium-no-cert-check.bat script, which sets the NODE_TLS_REJECT_UNAUTHORIZED=0 environment variable to bypass certificate verification. The server is accessible from the Windows client; I can successfully tcping the server on port 65443. Additionally, when I configure the server to use HTTP (https=false), the client connects and syncs without issues. This issue seems specific to the Windows client when connecting over HTTPS with a self-signed certificate, even when certificate verification is disabled. Interestingly, an Android client using a WireGuard tunnel to the same server syncs successfully over HTTPS. Steps to Reproduce: Expected Behavior: Actual Behavior: Additional Information: Client Configuration: Network: Any insights into why the Windows client fails to connect over HTTPS with a self-signed certificate, despite disabling certificate verification, would be appreciated. I'm set TriliumNext client in Chinese, my log shows some Chinese characters. TriliumNext Version0.93.0 What operating system are you using?Windows What is your setup?Local + server sync Operating System VersionC:Windows 10 LTSC 21H2 / S:Raspberry Pi OS bookworm Error logstoast.ts:88 14:19:19 error: 同步失败:No connection to sync server. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @arizuka! I'm Dosu and I’m helping the Trilium team. This is a known limitation with Trilium Desktop and Electron apps: setting A workaround that works for many users is to launch Trilium with the Electron flag Importing your self-signed certificate into the Windows trusted root store may help in some cases, but Electron/Chromium often does not use the system store, so this is not guaranteed to work 1. Disabling certificate validation (by any method) is insecure and exposes you to man-in-the-middle attacks. For production or sensitive environments, it's strongly recommended to use a certificate signed by a trusted CA 1. There are no recent code changes or fixes for this issue; it's a known limitation with current Electron/Node.js behavior in Trilium. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.

机器人是对的,实际上你可以这样配置Windows快捷方式,这样在使用中没有问题,只是可能存在一些安全隐患
The robot is correct. In fact, you can configure Windows shortcuts this way, and there will be no issues when using them, but there may be some security risks.
target:\Path\To\Trilium\trilium.exe --ignore-certificate-errors