Disable SSL certificate verification

Hi, Im trying to Disable SSL certificate verification but I couldn´t make it.
I try to modify the settings file with:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

And also I try with the next comand on the start up:

$env:NODE_TLS_REJECT_UNAUTHORIZED = "0"
cd E:\npm
.\node-red -s E:\npm\settings.js

Hi @LucasPelu

Is this for a particular node you are using? You've tagging this with http-request, so I'm going to assume this is with the core http request node.

To disable certificate verification in the node you can:

  1. tick the 'Enable secure connection' option
  2. click the pencil to add a new tls config node
  3. in that tls config node, untick the 'Verify server certificate' option

Hi Knolleary unfortunately doesnt work.
I still have no response from the request

Here is an example for disable the verification.

Do you get the html content from the 2 sites?

grafik

[{"id":"3d6d2fdd7cfc80f2","type":"inject","z":"63837addcf4deff7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":160,"wires":[["013ab3ae61063abf"]]},{"id":"013ab3ae61063abf","type":"http request","z":"63837addcf4deff7","name":"rsa2048 ok","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://rsa2048.badssl.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":370,"y":160,"wires":[["2490f06e871dc2a3"]]},{"id":"2490f06e871dc2a3","type":"debug","z":"63837addcf4deff7","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":560,"y":160,"wires":[]},{"id":"dfeec16b7ef28021","type":"inject","z":"63837addcf4deff7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":220,"wires":[["1297b78f167bfdaf"]]},{"id":"1297b78f167bfdaf","type":"http request","z":"63837addcf4deff7","name":"self-signed","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://self-signed.badssl.com/","tls":"83319386ef1552b4","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":370,"y":220,"wires":[["db942b61fbfb0c43"]]},{"id":"db942b61fbfb0c43","type":"debug","z":"63837addcf4deff7","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":560,"y":220,"wires":[]},{"id":"c1889e4c5e0b4bab","type":"comment","z":"63837addcf4deff7","name":"https://badssl.com/","info":"","x":390,"y":100,"wires":[]},{"id":"83319386ef1552b4","type":"tls-config","name":"","cert":"","key":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false,"alpnprotocol":""}]

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.