We\'re trying to use Node.js (and Mocha) as a testing framework to test API calls against an internal server over https. We\'re using the following node modules: Mocha, Restify
Try something like:
cas = [fs.readFileSync("[path to our CA cert file]"], https.globalAgent.options.ca = cas;
Taken from http://permalink.gmane.org/gmane.comp.mozilla.identity.devel/3762
It worked for me where all other solutions failed, it seems that this needs to be applied on the global agent.