title: nodejs - error self signed certificate in certificate chain
body: <p>I am facing a problem with client side https requests.</p>
  
  <p>A snippet can look like this:</p>
  
  <pre><code>var fs = require('fs');
  var https = require('https');
  
  var options = {
      hostname: 'someHostName.com',
      port: 443,
      path: '/path',
      method: 'GET',
      key: fs.readFileSync('key.key'),
      cert: fs.readFileSync('certificate.crt')
  }
  
  var requestGet = https.request(options, function(res){
      console.log('resObj', res);
  }
  </code></pre>
  
  <p>What I get is Error: self signed certificate in certificate chain.</p>
  
  <p>When I use Postman I can import the client certificate and key and use it without any problem. Is there any solution available?? I would also like to be given some lights on how postman handles the certificates and works. </p>