Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any ideas on how to get this to use https? Having trouble finding the right settings.js #4

Open
skaboy71 opened this issue Apr 15, 2020 · 2 comments

Comments

@skaboy71
Copy link

I used openssl to create a self signed cert on the jail.

I edited the settings.js file at /usr/local/lib/node_modules/node-red .

per the instructions here: http://www.steves-internet-guide.com/securing-node-red-ssl/

I restarted the jail but it's still only listening on http.

@tprelog
Copy link
Owner

tprelog commented Jun 13, 2020

@skaboy71 -- wow 🤦 I'm really sorry I missed your issue.

Unfortunately I don't have any advise to offer on this.

Good news might be this plugin is just a simple npm install. There is nothing I'm aware of that should prevent this from working just because it's a "plugin"

@Ekristoffe
Copy link
Contributor

Ekristoffe commented Jun 14, 2020

@skaboy71 I made it work!
So first you need to change the file /var/db/nodered/settings.js
Then you need to put the full path in the .pem files
For example I have:

    https: {
        key: fs.readFileSync('/var/db/nodered/node-key.pem'),
        cert: fs.readFileSync('/var/db/nodered/node-cert.pem')
    },

I haven't try yet for the others password and so on.
If you need help let's talk here.

--- Edit: this also work

    https: {
        key: fs.readFileSync(__dirname + "/node-key.pem"),
        cert: fs.readFileSync(__dirname + "/node-cert.pem")
    },

Edit ---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants