Hello to all !
I try to put my node red access in https but I can't succeed.
1 Jan 07:11:33 - [info] Node-RED version: v3.1.3
1 Jan 07:11:33 - [info] Node.js version: v20.10.0
1 Jan 07:11:33 - [info] Linux 6.1.69-v8+ arm64 LE
OpenSSL 3.0.11 19 Sep 2023 (Library: OpenSSL 3.0.11 19 Sep 2023)
What I did : https://dave.thwaites.org.uk/theatre-royal/eos-remote/securing-nodered.html
When I start node-red-start I have this in the log :
Error loading settings file: /home/hotspot/.node-red/settings.js
Error: EACCES: permission denied, open '/home/hotspot/.node-red/public/privatekey.pem'
I have a public and inside I have :
:/home/hotspot/.node-red/public# ls
certificate.pem myCA.cer myCA.key private-csr.req privatekey.pem
In the settings.js :
/** Option 1: static object */
https: {
key: require("fs").readFileSync('/home/hotspot/.node-red/public/privatekey.pem'),
cert: require("fs").readFileSync('/home/hotspot/.node-red/certificate.pem')
},
requireHttps: true,
Any help will be very appreciated my friends
Best regards and a happy new year 2024 to all !