Certifi is a carefully curated collection of Root Certificates for validating the trustworthiness of SSL certificates while verifying the identity of TLS hosts. It has been extracted from the Python Requests project.
$ npm install certifi
const fs = require('fs');
const https = require('https');
const certifi = require('certifi');
console.log(certifi);
//=> '/User/sindresorhus/node-certifi/cacert.pem'
https.createServer({
cert: fs.readFileSync(certifi)
}, () => {});