title: https.request ignoring rejectUnauthorized
body: <p>I'm trying to connect to a remote server using nodejs 0.12, and i keep getting the response SELF_SIGNED_CERT_IN_CHAIN. I have looked at similar questions <a href="https://stackoverflow.com/questions/10888610/ignore-invalid-self-signed-ssl-certificate-in-node-js-with-https-request">1</a> <a href="https://stackoverflow.com/questions/17303564/how-do-i-avoid-self-signed-cert-in-chain-error-in-node-js-tls-module">2</a> but somehow their solutions don't work on my server.</p>
  
  <p>I am connecting to a test environment outside of my control setted up with a self signed certificate. This is my request:</p>
  
  <pre><code>var https = require("https");
  var fs = require('fs');
  
  start();
  
  function start()
  {
      var listadebancos = 
      {
          language:"es",
          command:"GET_BANKS_LIST",
  
          merchant:
          {
              apiLogin:"111111111111111",
              apiKey:"11111111111111111111111111",
          },
  
          test:true,
          bankListInformation:
          {
              paymentMethod:"PSE",
              paymentCountry:"CO"
  
          }
      };
  
      var listadebancosString = JSON.stringify(listadebancos);
  
      var headers = 
      {
          'Content-Type': 'application/json',
          'Content-Length': listadebancosString.length
      };
  
          var options= {
              host: 'stg.api.payulatam.com',
              rejectUnauthorized: false,
              agent:false,
              path: '/payments-api/4.0/service.cgi',
              method: 'POST',
              cert: fs.readFileSync('./stg.gateway.payulatam.crt'),
  
          }
  
          process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
  
          var req= https.request(options, funcionRespuesta);
          req.write(listadebancosString); 
          req.end();
  
  
  
          function funcionRespuesta(res) 
          {   console.log(res);
          }
  
      }
  </code></pre>
  
  <p>Am i missing something obvious?</p>