title: Javascript: 'Self signed certificate' error during API call
body: <p>I'm automating some API calls in Javascript and a few days ago this error started appearing out of nowhere.</p>
  
  <pre><code>base.js:383
    1) Test API call
  base.js:266
         Fourth test:
       FetchError: request to https://api.qa.xx.xxxx.com:443/mobile/v2/subscribers failed, reason: self signed certificate in certificate chain
        at ClientRequest.&lt;anonymous&gt; (node_modules/node-fetch/lib/index.js:1393:11)
        at TLSSocket.socketErrorListener (_http_client.js:387:9)
        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)
  </code></pre>
  
  <p>I have spent countless hours trying to find a solution but nothing works. I've re-cloned the entire repo and everything. Does anybody know how to solve this?</p>
  
  <p>What I did before this started happening:</p>
  
  <ol>
  <li>Installed npm config</li>
  <li>Installed mongodb client</li>
  </ol>
  
  <p>I've uninstalled since</p>