dakshshah96 / local-cert-generator

🚀 A set of scripts to quickly generate a HTTPS certificate for your local development environment.
968 stars 237 forks source link

[Question] Getting to work without node app? Running on https://192.168.1.11:5000 ? #8

Open Jones-S opened 4 years ago

Jones-S commented 4 years ago

Hi there I just came from reading: https://www.freecodecamp.org/news/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec/

And I could follow through, but I have a much simpler setup and I don't want to run a node app. I simply have an html file and I run https://www.npmjs.com/package/serve

to serve it. Is there a way to include an ssl certificate with such a simple setup?

Also - the reason why I am doing this, is because I want to access a mobile devices deviceorientation. Unfortunately you have to run on https to get some values... In my case I call my localhost server via the IP in the network, like: http://192.168.1.11:5000

Of course this should be https. Even if I got to run your way of having a valid certificate for localhost, would that also be valid for http://192.168.1.11:5000?

Thanks for some clarification. Sorry, I am really not at home with the whole certificate stuff, I just want to run a simple server to execute the most simple javascript... Hach, how darn complicated has the web world become 😅....