title: If I disable NODE_TLS_REJECT_UNAUTHORIZED, my request is still denied
body: <p>I am disabling Node from rejecting self signed certificates and making a request.</p>
  
  <pre><code>const { USER, PW } = process.env;
  
  const b64 = new Buffer(`${VP_API_USER}:${VP_API_PW}`).toString("base64");
  
  const Authorization = `Basic ${b64}`;
  
  const doFind = async url =&gt; {
    process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
    const results = await fetch(url, { headers: { Authorization } })
      .then(r =&gt; (r.ok ? r.json() : Promise.reject(r)))
      .catch(err =&gt; {
        return Promise.reject(err);
      });
    process.env.NODE_TLS_REJECT_UNAUTHORIZED = 1;
  
    return results;
  };
  </code></pre>
  
  <p>I am still being rejected.  </p>
  
  <pre><code>{ FetchError: request to https://&lt;url&gt;:55544/contracts failed, reason: connect ECONNREFUSED &lt;url&gt;:55544
      at ClientRequest.&lt;anonymous&gt; (/Users/mjhamm75/Developer/sedd-monorepo/node_modules/node-fetch/index.js:133:11)
      at emitOne (events.js:116:13)
      at ClientRequest.emit (events.js:211:7)
      at TLSSocket.socketErrorListener (_http_client.js:387:9)
      at emitOne (events.js:116:13)
      at TLSSocket.emit (events.js:211:7)
      at emitErrorNT (internal/streams/destroy.js:64:8)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)
    name: 'FetchError',
    message: 'request to https://&lt;url&gt;:55544/contracts failed, reason: connect ECONNREFUSED &lt;url&gt;:55544',
    type: 'system',
    errno: 'ECONNREFUSED',
    code: 'ECONNREFUSED' }
  </code></pre>
  
  <p>What am I doing wrong?</p>