-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Bug report) trilium-no-cert-check.sh still get Error: net::ERR_CERT_COMMON_NAME_INVALID #4875
Comments
Whatever shell you are using, you can try setting e.g.
Validate that you have set the variable in the shell where you're executing Trilium:
Trilium isn't doing any special checking as it's using Node.js's defaults. The Or just set up sync with an IP address instead of a hostname. |
Thanks for the info. Unfortunately, this also doesn't work. Even after setting that variable, running trilium.sh nor trilium-no-cert.check.sh works.
The thing is, I'm using docker, so I can't even control the certificate... can I? |
UPDATE: it works with |
Glad you got it sorted out! Your external cert should work (when making a request to your public IP from inside your LAN) due to NAT hairpinning. This is exactly what I do on my network with port forwarding :) Again, glad you got it to work though! Feel free to close the issue then. |
Well thanks, though my problem still isn't solved, I'm not able to set up an automatic secure sync. I just managed to do 1 manual sync... NAT hairpinning is useful, but not the issue here. The executable does not work as intended, so I will not close the issue. |
Zadam isn't making many changes nowadays on this repo, so you may want to check out the updated fork at TriliumNext/Notes. See #4620 |
My suggestions would be to change your server to use I don't believe that flag is supported on the Windows client currently. |
OK thanks for the info and that's a very good point, I don't expect MITM on my LAN :D so at least I can start syncing my local devices. |
Trilium Version
0.62.5
What operating system are you using?
Ubuntu
What is your setup?
Local + server sync
Operating System Version
22.04
Description
I'm connecting on a local network (where my server is), so naturally my cert for example.com gets declined as I'm connecting through 192.168.1.x and I get Error: net::ERR_CERT_COMMON_NAME_INVALID
However, after using /usr/lib/trilium/trilium-no-cert-check.sh I still get the same error. Why?
Update: even after connexting externaly, I still get Error: net::ERR_CERT_DATE_INVALID (again because my cert is out of date). So it's a general issue where trilium IS performing cert checks while it shouldn't.
Error logs
Error: net::ERR_CERT_COMMON_NAME_INVALID
Error: net::ERR_CERT_DATE_INVALID
The text was updated successfully, but these errors were encountered: