I want to do something like this in my systemjs-tools.js:
var fs = require('fs');
module.exports.config.serve.keys = {
key: fs.readFileSync('localhost.key'),
cert: fs.readFileSync('localhost.crt'),
ca: fs.readFileSync('localhost.key'),
}
This way, I can customize the localhost key which is being served from some project that does not supply a localhost key with Subject Alternative Names set. When I do this, the file is corrupted by the lib/config processing with merge/conform somehow, causing the cert to become stringified instead of being passed to spdy.createServer() as Buffer form.
I want to do something like this in my systemjs-tools.js:
This way, I can customize the localhost key which is being served from some project that does not supply a localhost key with Subject Alternative Names set. When I do this, the file is corrupted by the lib/config processing with merge/conform somehow, causing the cert to become stringified instead of being passed to spdy.createServer() as Buffer form.