Skip to content

Instantly share code, notes, and snippets.

@davydka
Created February 6, 2019 18:12
Show Gist options
  • Save davydka/e784e522d1569a7afb3bb2c97f8230ee to your computer and use it in GitHub Desktop.
Save davydka/e784e522d1569a7afb3bb2c97f8230ee to your computer and use it in GitHub Desktop.
https: node http-servers with ssl for https
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem


http-server -S -C cert.pem -o
Starting up http-server, serving ./ through https
Available on:
  https:127.0.0.1:8080
  https:192.168.1.101:8080
  https:192.168.1.104:8080
Hit CTRL-C to stop the server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment