After creating my own node-certifi style project for a private CA I got caught up with the following issue.
Doesn't this make the example in the README kind of misleading as only the first certificate is actually being used for the server:
https.createServer({
cert: fs.readFileSync(certifi)
}, function () {});