Having some issues getting node-red to use the SSL certs that I use for my Hassbian install. Here is my setup:
Raspberry pi 3
Hassbian and node-red installed
node red is in /home/pi/.node-red
homeassistant in /home/homeassistant/.homeassistant
certs are in /home/homeassistant/dehydrated
I add the path to the certs in the node-red settings.js as follows:
https: {
key: fs.readFileSync(‘/home/homeassistant/dehydrated/certs/mydomain.duckdns.org/privkey.pem’),
cert: fs.readFileSync(‘/home/homeassistant/dehydrated/certs/mydomain.duckdns.org/fullchain.pem’)
}
When I go to run Node-red, I get the following
Starting as a systemd service.
Started Node-RED graphical event wiring tool.
Error loading settings file: /home/pi/.node-red/settings.js
{ Error: EACCES: permission denied, open ‘/home/homeassistant/dehydrated/certs/mydomain.duckdns.org/privkey.pem’
Am I running into a permission problem here? I tried granting user “pi” permissions to /home/homeassistant/dehydrated but with no luck.
Edit: My goal is to be able to use the same duckdns address that I use for my hass:
https://mydomain.duckdns.org:8123
with my node red :
https://mydomain.duckdns.org:1880
any help would be appreciated