Hey everyone reading this.
I am currently trying to crate a subdomain for my NodeRED Webinterface.
Since I am using cloudflare i wanted/ need to secure my Webinterface through HTTPS
Therefore i commented out the first Option in the settings.js and pasted the crtificate.pem and privatekey.pem in /mynodered/_data/ (i am running NodeRED in Docker) but every time i try to run the container i get the following error:
Error loading settings file: /data/settings.js
Error: ENOENT: no such file or directory, open 'privatekey.pem'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at Object.<anonymous> (/data/settings.js:94:26)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/usr/src/node-red/node_modules/node-red/red.js:140:20) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: 'privatekey.pem'
from this i am reading that it can't find the private key but it is in the same directory as the settings. Can anybody help me out finding a way to solve this error and secure the Webinterface over HTTPS?
Best Regards Justricity