title: Node-fetch: Disable SSL verification
body: <p>I have the following code, which is run from a express server: </p>
  
  <pre><code>import fetch from 'node-fetch';
  
  let formBody = [];
  
  const dataLogin = {
        'username': 'myUser',
        'password': 'myPassword'
  };
  
  for (let p in dataLogin) {
     let encodedKey = encodeURIComponent(p);
     let encodedValue = encodeURIComponent(dataLogin[p]);
     formBody.push(encodedKey + "=" + encodedValue);
   }
  
   formBody = formBody.join("&amp;");   
  
   const url = 'https://external-login-api.com';
   return fetch(url, {
            method: 'POST',
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded',
                'Content-Length': formBody.length         
    },     
    body: formBody
   });
  </code></pre>
  
  <p>When I run the code I get the following error, despite being able to run the request in Postman with no problems.</p>
  
  <blockquote>
    <p>{"message":"request to <a href="https://external-login-api.com" rel="noreferrer">https://external-login-api.com</a> failed, reason: write EPROTO 7316:error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small:openssl\ssl\statem\statem_clnt.c:1472:\n","type":"system","errno":"EPROTO","code":"EPROTO"}</p>
  </blockquote>
  
  <p>How do I disable SSL verification for this request? </p>