I’m a fresh user of n8n, and working toward installations quirks.
Problem/error/question
I need to create credential for local llm, but i need to disable SSL certificate controle
For now i use http request to get the job done, but it cuts me from all nice pre-built-in agent node.
As a first attempt, i set NODE_TLS_REJECT_UNAUTHORIZED = 0.
Which is confirmed when i start n8n
”Version: 1.108.2
(node:14028) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to ‘0’ makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use node --trace-warnings … to show where the warning was created)”
By doing that, in the credential window, instead of getting an ssl related error, i get.
I already created credential for a local LLM using LM studio without any issue. But the new LLM i’m targetting is on a server that i can only access via an HTTPS request. I’m not in capacity to change network configuration or the behavior of the server.
Hello Jc_Loko, welcome to n8n Community! I’ll try my best to help yaa.
I think you dont need to turn TLS off globally.
NODE_TLS_REJECT_UNATUHORIZED=0 is unsafe and still wont help the credential test or some nodes enforce verification. The reliable fix is to make Node trust your server’s cert, or to skip the credential test and keep TLS on.
Maybe there are several solution that i can suggest:
Export the server’s root/self-signed cert as PEM (e.g. ca.pem). Start n8n with Node pointing to that CA:
Unfortunnatly none of these options worked.
I have merged the various certificates i have on my computer to create the pem files.
Looking at then with a text editor the structures looked ok, but even so it is still failling.
I suspect i’ll try to figure it out with IT.
Thanks again for helping though, i appreciate.