split a certificate bundle into an array of certificates
npm install cert-unbundleturn a certificate bundle into an array of certificates you can pass to
tls as the opts.ca


`` js
var fs = require('fs')
var unbundle = require('cert-unbundle');
var certs = unbundle(fs.readFileSync('bundle.ca', 'utf8'));
console.log(certs);
`
` js
var fs = require('fs')
var https = require('https');
var unbundle = require('cert-unbundle');
var certs = unbundle(fs.readFileSync('bundle.ca', 'utf8'));
var opts = { ca: certs };
var server = https.createServer(opts, function () {
res.end('beep boop\n');
});
server.listen(443);
`
` js`
var unbundle = require('cert-unbundle')
Return an array of certificate strings certs from a buffer or string of thecertContents
bundled .
With npm do:
```
npm install cert-unbundle
MIT