# "node-red admin login" fails with enabled https

**URL:** <https://discourse.nodered.org/t/node-red-admin-login-fails-with-enabled-https/50336>\
**Category:** General\
**Created:** [28 August 2021 21:15 UTC](https://discourse.nodered.org/t/node-red-admin-login-fails-with-enabled-https/50336 "2021-08-28T21:15:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rko](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rko/32/45807_2.png) [@rko](https://discourse.nodered.org/u/rko)\
**Post date:** [28 August 2021 21:15 UTC](https://discourse.nodered.org/t/node-red-admin-login-fails-with-enabled-https/50336/1 "2021-08-28T21:15:36Z")

</div>

Just wanted to explore the `node-red admin` commands and got the "usual" certificate error:

`Error: self signed certificate`

We could invest some time to get rid of the error but as soon as the device is out in the wild (at customer site) things quickly get more complicated. This is a big issue for another post.

(Hypothetical scenario, I am not really using the admin console yet): The workaround atm is to turn https off, restart Node-RED, do the `node-red admin` stuff in the terminal and turn https on again. In the meantime my buddy at the other end of the office would have done all the changes in the browser (cause he doesn't like terminals) already.

While I am okay with the workaround, I wondered if there is a possibility to ignore the self signed certificate error in the terminal.

---

<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:** [28 August 2021 22:03 UTC](https://discourse.nodered.org/t/node-red-admin-login-fails-with-enabled-https/50336/2 "2021-08-28T22:03:47Z")

</div>

The quick workaround is to set the environment variable `NODE_TLS_REJECT_UNAUTHORIZED` to `0` before running the command.

---

<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:** [11 September 2021 22:04 UTC](https://discourse.nodered.org/t/node-red-admin-login-fails-with-enabled-https/50336/3 "2021-09-11T22:04:03Z")

</div>

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