- Version: v8.10.0
- Platform: Windows 10 x64 (behind proxy)
- Subsystem:
When connecting to https url with self signed certificate, the following error is thrown:
Error: connect EPERM /
at Object._errnoException (util.js:1019:11)
at _exceptionWithHostPort (util.js:1041:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1175:14)
The issue isn't system independent and happens starting with nodev8.6.0. The code below works fine on nodev8.5.0 or lower on same machine
const https = require("https");
const fs = require("fs");
var globalAgent = https.globalAgent;
globalAgent.options = {ca: [fs.readFileSync('./caTrust.cer')]};// caTrust.cer contains self signed certificate for target url
const url = 'https://target.localhost'
https.get(url, response => {
console.log(response);
});
When using request library to make the https call, it throws a slightly different error: Error: connect ENOENT
When connecting to https url with self signed certificate, the following error is thrown:
The issue isn't system independent and happens starting with nodev8.6.0. The code below works fine on nodev8.5.0 or lower on same machine
When using
requestlibrary to make the https call, it throws a slightly different error:Error: connect ENOENT