• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Node-Red "http in"-Node not working
#6
Ok I see. This was a good hint. I have not been working so far with the HTTP In Node, but now I know what is happening.

The implementation of our containerized Node-RED uses the HTTPS secured method to get accessible securely. In general the Node-RED "settings.js" configuration file located here /root/.node-red/ has a special area where you can configure HTTPS and enable it. The procedure is described for examole on this web page: https://notenoughtech.com/home-automatio...o-nodered/

What I see in the source code of the Node-RED container's build file at https://github.com/HilscherAutomation/ne...Dockerfile is that the lines 98 to 110 are taking care of the settings.js file modification to enable HTTPS  handling and also the generation of a self signed certificate and keys.

All relevant files are created in the container folder /root/.node-red/certs. The CA file, the private and the public key. The most relevant file for you is the /root/.node-red/certs/node-cert.pem file. This file is needed on your remote machine to tell it to trust the HTTPS site of this Node-RED instance. It is a text file and you can copy and paste its contents to a cert file on your remove machine and include it in the trusted list of certificates.

I see the following possibilities:

a.) You could use netPIs Docker web UI and click on the running container and use the embedded console function to "jump" into the container and output the /root/.node-red/certs/node-cert.pem file on the screen using the Linux command "cat /root/.node-red/certs/node-cert.pem". Then you can copy the content.
b.) You could fork the container's source code and remove the lines from 98 to 110 and the Node-RED will not more be secured during containers build process. I don't know how familiar you are with building your own container image.
c.) You could call the curl command with the option "-k" to let it trust also untrusted self signed certificates

Thx
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
Node-Red "http in"-Node not working - by DWxPro - June-18th-2020, 12:45 PM
RE: Node-Red "http in"-Node not working - by DWxPro - June-18th-2020, 12:57 PM
RE: Node-Red "http in"-Node not working - by DWxPro - June-18th-2020, 05:40 PM
RE: Node-Red "http in"-Node not working - by Armin@netPI - June-18th-2020, 09:09 PM
RE: Node-Red "http in"-Node not working - by DWxPro - June-19th-2020, 01:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Node Red configuration LucioFiam 3 1,796 November-30th-2022, 05:14 PM
Last Post: Armin@netPI
  Hdmi not working s.stucchi 13 6,403 February-28th-2022, 09:24 AM
Last Post: Armin@netPI
  secure node-red with a username and password Christian_Rau 3 3,026 December-3rd-2021, 11:06 AM
Last Post: Armin@netPI
  cifx0 and Node-Red fabio1975 5 3,287 November-22nd-2021, 01:13 PM
Last Post: Armin@netPI
  HTTP Request using Nodered DSongra 6 3,613 August-20th-2021, 11:44 AM
Last Post: Armin@netPI
  Node red web UI issue DSongra 3 3,287 July-22nd-2021, 02:47 PM
Last Post: Armin@netPI
  Node-RED 'projects' possible on netPI? JG_KIT 2 2,414 July-20th-2021, 01:11 PM
Last Post: JG_KIT
  [SOLVED]DHCP server not working m-yoshikawa 24 14,252 June-11th-2021, 07:04 AM
Last Post: tad
  Node-RED: OpcUa Client node tad 4 4,600 June-9th-2021, 08:51 AM
Last Post: tad
  Profinet stopped working (spidev spi0.0: SPI transfer timed out) Schranz 7 5,215 November-2nd-2020, 04:20 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 2 Guest(s)