• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Web authentication

Q&A Forum › Category: Raspberry Pi › Web authentication
0 Vote Up Vote Down
Nadav Madar asked 9 years ago

Hi,
I’m trying to enable web authentication but unfortunately its is not working.
I followed the exact instructions provided in the link but the result is no web server at all.
Any suggestions?
Thanks,
http://industrialinternet.co.uk/node-red/adding-https-ssl-to-node-red/
 

Question Tags: HTTPS authentication
5 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 9 years ago

Can you tell me the exact problem that you’re running into Nadav?
Is the Node-RED web server that stopped working?
Rui

0 Vote Up Vote Down
Nadav Madar answered 9 years ago

Hi Rui,
Every modification I made to settings.js, the web server stopped responding.
Can you share with me settings. j’s that’s working? Maybe I’m missing something.
Thanks,
Nadav

0 Vote Up Vote Down
Rui Santos Staff answered 9 years ago

Hi Nadav,
I hope you are doing well. I’m sorry for taking so long to answer, but I was on holidays and it was very hard to have a stable internet connection to answer emails/questions.
That’s sounds like something is missing when you copy the lines that he describes in the blog post. I personally never added HTTPS to my Node-RED installation.
Did you add these exact lines to your settings file?
},
  https: {
    key: fs.readFileSync(‘privkey.pem’),
    cert: fs.readFileSync(‘cert.pem’)
},
You also need to add the following line before “module.exports = {“:
var fs=require(‘fs’);

0 Vote Up Vote Down
Rui Santos Staff answered 9 years ago

Can you post here the settings file that gives you the error? I might be able to fix it for you.
Thank you for your patience,
Rui

0 Vote Up Vote Down
Nadav Madar answered 9 years ago

Hi Rui,
I tried, same issue, no web server.
you can find my setting.js file here:https://www.dropbox.com/s/kx8r62b4xdvnu2y/settings.js?dl=0
Thanks
Nadav

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.