Node.js - Using https.request() with an internal CA
问题 Who do I get https.request() to trust my internally-signed server certificate. Here is a quick example of the code I'm running in v0.10.25: var options = { hostname: 'encrypted.mydomain.local', port: 443, path: '/', method: 'GET' }; var https = require('https') https.request(options) I'm running this on a Windows system which has my internal root CA trusted at the system level, but whenever I make a request like this I get the exception events.js:72 throw er; // Unhandled 'error' event ^