# Disable SSL certificate verification

**URL:** https://discourse.nodered.org/t/disable-ssl-certificate-verification/88195
**Category:** General
**Tags:** http-request
**Created:** [23 May 2024 12:30 UTC](https://discourse.nodered.org/t/disable-ssl-certificate-verification/88195 "2024-05-23T12:30:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![LucasPelu](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@LucasPelu](https://discourse.nodered.org/u/LucasPelu)
#### Post date: [23 May 2024 12:30 UTC](https://discourse.nodered.org/t/disable-ssl-certificate-verification/88195/1 "2024-05-23T12:30:52Z")

</div>

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

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [23 May 2024 12:41 UTC](https://discourse.nodered.org/t/disable-ssl-certificate-verification/88195/2 "2024-05-23T12:41:31Z")

</div>

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

---

<div class="post-metadata">

### Author: ![LucasPelu](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@LucasPelu](https://discourse.nodered.org/u/LucasPelu)
#### Post date: [23 May 2024 13:50 UTC](https://discourse.nodered.org/t/disable-ssl-certificate-verification/88195/3 "2024-05-23T13:50:03Z")

</div>

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

---

<div class="post-metadata">

### Author: ![kitori](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kitori](https://discourse.nodered.org/u/kitori)
#### Post date: [24 May 2024 07:47 UTC](https://discourse.nodered.org/t/disable-ssl-certificate-verification/88195/4 "2024-05-24T07:47:12Z")

</div>

Here is an example for disable the verification.

Do you get the html content from the 2 sites?

![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/4/1476689ee176bbd6745b971b5a509b0dda6640c2.png)

```auto
[{"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":""}]

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [22 August 2024 07:47 UTC](https://discourse.nodered.org/t/disable-ssl-certificate-verification/88195/5 "2024-08-22T07:47:27Z")

</div>

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