I'm using the pre-installed 'Jessie' node-red on a RP2, and hit a slight problem whilst trying to run NR in https mode.
In settings.js I have;
which are the correct absolute paths for the certificates. If I start NR, I get;
Error loading settings file: /home/pi/.node-red/settings.js
errno: 3,
code: 'EACCES',
However, if I copy the certificates to a folder within .node-red, and update settings.js to the certificate's absolute path (ie /home/pi/.node-red/certs/cert1.pem) everything works fine.
I've checked the permissions of the certificates at both locations and they are both identical root:root.
As the SSL certificates are automatically renewed every 3 months, I really need to be able to link to the actual certificates, otherwise I will have to manually copy them to .node-red every 3 months.
Paul