HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a separate module.
Can do all sorts of request over the http/https network .
const https = require('https');
const fs = require('fs');
const options = {
pfx: fs.readFileSync('test/fixtures/test_cert.pfx'),
passphrase: 'sample'
};
https.createServer(options, (req, res) => {
res.writeHead(200);
res.end('hello world\n');
}).listen(8000);

0 Comments