First you have to generate public and private keys using OpenSSL(tutorial).
var express = require("express");
var http =require ("http");
var https=require ("https");
var fs=require("fs");
var app=express();
var httpsKeys={
key:fs.readFileSync("&l...