Run Node-red with SSL

Hello @Allan_Zimmermann
We have successfully hosted OpenFlow with SSL using a CRT and PEM file. However, we are unable to run Node-RED with the same CRT and PEM files. Could you please guide us on how to resolve this issue?
Below is the error message for reference

1|noderedlocal | Error: self signed certificate
1|noderedlocal | at TLSSocket.onConnectSecure (node:_tls_wrap:1532:34)
1|noderedlocal | at TLSSocket.emit (node:events:527:28)
1|noderedlocal | at TLSSocket._finishInit (node:_tls_wrap:946:8)
1|noderedlocal | at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:727:12) {
1|noderedlocal | code: ‘DEPTH_ZERO_SELF_SIGNED_CERT’
1|noderedlocal | }
1|noderedlocal | Process exit event with code: 404
PM2 | App [noderedlocal:1] exited with code [404] via signal [SIGINT]
PM2 | App [noderedlocal:1] starting in -fork mode-
PM2 | App [noderedlocal:1] onlin

I don’t know what that error means, a quick google search suggest you issued a certificate where Root/CA and certificate all have the same name, that is generally not a good idea.
Also is the issue nodered is not connecting to openflow or is the problem running the nodered with a certificate as well ?

1 Like


Thank you for your response. We are facing an issue while running Node-RED. I have attached a screenshot of the logs for your reference. Your suggestions would be greatly appreciated.

You could try and disable cert check by adding environment variable NODE_TLS_REJECT_UNAUTHORIZED with value 0

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