Replies: 6 comments 1 reply
-
|
Hi @1638410! I'm Dosu and I’m helping the Trilium team. Trilium Desktop doesn't support presenting client certificates for mTLS, so syncing fails with servers (like Cloudflare mTLS) that require them—hence the To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
@dosubot please teaching me how to use the ghostunnel to attach the website using mtls. At least, I could directly using ssh port forwarding, to directly link to the trilium server without CDN. |
Beta Was this translation helpful? Give feedback.
-
|
Here's how you can use ghostunnel to let Trilium Desktop sync through an mTLS-protected endpoint:
SSH port forwarding alternative: If you have SSH access to your VPS, you can forward a local port to the Trilium server directly, bypassing Cloudflare and mTLS: ssh -L 8443:localhost:443 user@your-vpsThen point Trilium Desktop to Let me know your OS if you need more specific commands or help with certificate formats! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
maybe I can simply add a host file to point the website directly to the ip of the vps to bypass mtls. update: dont use it, another tls error:( |
Beta Was this translation helpful? Give feedback.
-
on linux
Using hostfile to bypass the CDN(which use mtls), the vps use the cert of the origin cert of the abc.com, so just like selfsign certificate, just use --ignore-certificate-errors |
Beta Was this translation helpful? Give feedback.
-
|
I would check it now if it is using tls(not downgrade to http, not a programer, just afraid) update: indeed |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe feature
#1577
(trilium 0.98.1)
I use cloudflare to add mtls.
Although I disalble "forcing-mtls verify is true" in cf WAF (browsers and curl without mtls cert can visit my trilium site), the desktop client would fail with sync
*because the whole .abc.com is figure using mtls.
Simple workaround is use another website, listing all subset of abc.com without trilium.abc.com when figure mtls on cloudflare, just syncing with proxy to my vps directly, or just locally.
(edited) could it just ignore the error and sync?
Beta Was this translation helpful? Give feedback.
All reactions