Node-red behind an https proxy

Hi all,

Thanks for the work on node-red, I really like it!
I’m currently running behind an https proxy (content filter) which causes some problems when using, for instance, https APIs. The problem is caused by the filter replacing the certificates used by a website with its own certificate. When calling an API (for example the Google Calendar API), node-red gives these errors:

error: self signed certificate in certificate chain

tried solutions

  • install certificate system-wide in /etc/ssl/certs
  • set environment variable NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
  • npm config set ca="/etc/ssl/certs/solcon.pem" (this actually solves the problem for npm but not for node-red)

These solutions didn’t work. Please note that I’m running node v8.11.1 under nvm (maybe this causes the above solutions not to work?)

By the way, whitelisting the domain helps, but that’s not the preferred solution since I’m using multiple APIs (then I need to whitelist them all, and in some cases I need to whitelist multiple domains because of authentication issues etc. Besides, I can’t easily whitelist domains because I’m not a network administrator).

Can anyone tell me how I can add the proxy certificates to node-red (or maybe nodejs)?

system info:

  • raspberry pi 3B
  • node-red 0.18.4
  • nodejs 8.11.1 running under nvm