NodeJS HTTPS server using http_server

openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
http-server -S -C cert.pem -o

Use 127.0.0.1 as value for “Common name”

References
https://stackoverflow.com/questions/35127383/npm-http-server-with-ssl

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.