title: How to ignore self signed certificate issue in request-promise
body: <p>I am using request-promise module for my node app to make some API call. 
  <a href="https://www.npmjs.com/package/request-promise" rel="nofollow noreferrer">https://www.npmjs.com/package/request-promise</a></p>
  
  <pre><code>import request from 'request-promise';
  let options = {
                  method: GET,
                  json: true,
                  uri : "https://" +this.urls + endpoint,
                  body: payload,
                  rejectUnauthorized: false // This doesn't work
              };
  
  let response = await request(options)
  </code></pre>
  
  <p>SInce the API what I am trying to use is insecure (having self signed certificate), the conncetion is failing with this error:</p>
  
  <blockquote>
    <p>Error: connect ECONNREFUSED</p>
  </blockquote>
  
  <p>I know with "request" module, we could pass rejectUnauthorized: false , to handle such case. I am not sure how can I pass such option with request-promise module. </p>