# Self\_signed\_cert\_in\_chain error

**URL:** https://discourse.nodered.org/t/self-signed-cert-in-chain-error/46864
**Category:** General
**Created:** [8 June 2021 14:40 UTC](https://discourse.nodered.org/t/self-signed-cert-in-chain-error/46864 "2021-06-08T14:40:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mhechthz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mhechthz/32/20144_2.png) [@mhechthz](https://discourse.nodered.org/u/mhechthz)
#### Post date: [8 June 2021 14:40 UTC](https://discourse.nodered.org/t/self-signed-cert-in-chain-error/46864/1 "2021-06-08T14:40:15Z")

</div>

Hi,

I execute a HTTP-GET on a self hosted web page. With http request node I get the error message `self_signed_cert_in_chain`. I don't know how to solve this because alle answers in web are about nodejs but not node-red. Setting `-e NODE_TLS_REJECT_UNAUTHORIZED=0` in my docker container did not help.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [8 June 2021 21:10 UTC](https://discourse.nodered.org/t/self-signed-cert-in-chain-error/46864/2 "2021-06-08T21:10:47Z")

</div>

You need to pass in `msg.rejectUnauthorized` set to false. Information in the help.

---

<div class="post-metadata">

### Author: ![mhechthz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mhechthz/32/20144_2.png) [@mhechthz](https://discourse.nodered.org/u/mhechthz)
#### Post date: [9 June 2021 07:09 UTC](https://discourse.nodered.org/t/self-signed-cert-in-chain-error/46864/3 "2021-06-09T07:09:53Z")

</div>

works perfectly - thank you.

---

<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: [23 June 2021 07:09 UTC](https://discourse.nodered.org/t/self-signed-cert-in-chain-error/46864/4 "2021-06-23T07:09:57Z")

</div>

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