Trust your CA in Node.js - rcrowley/certified GitHub Wiki
var httpsAgent = new https.Agent({
ca: fs.readFileSync('etc/ssl/certs/root-ca.crt')
, rejectUnauthorized: true
})
https.request(
{
agent: httpsAgent
, hostname: 'example.com'
, method: 'GET'
, path: '/'
}
, function (response) {
// ...
}
)