Following various posts about running Node-red as https, I've done the following:
Made the following changes in settings.js:
var fs = require("fs");
...
https: {
key: fs.readFileSync('privkey.pem'),
cert: fs.readFileSync('cert.pem')
},
...
requireHttps: true
Created privkey.pem and cert.pem.
Verified files exist in ~/node-red (Raspberry Pi).
Node.js version v8.9.4 Node-RED version v0.17.5
When I do https://raspberrypi:1880 I get "The site cannot be reached" but http://raspberrypi:1880 still works. I even tried rebooting the Pi.
This was a simple operator error. I had two dirs. One .node-red and one node-red (FYI: Only install node-red using one way and not several [duh]).
When node-red was loading I miss read the working directory and modified the wrong settings.js