I followed the tutorial below to create a https server https://docs.nodejitsu.com/articles/HTTP/servers/how-to-create-a-HTTPS-server/
and the program runs without errors
Assuming you are using node.js, then http-server has -S or --ssl with -C and -K to enable https.
-S
--ssl
-C
-K