title: SOAP request and "SSL routines:ssl3_read_bytes:sslv3 alert handshake failure"
body: <p>I have a PFX file. I generated PEM and KEY file:</p>
  
  <ul>
  <li><code>openssl pkcs12 -in cert.pfx -out cert.pem -clcerts -nokeys</code></li>
  <li><code>openssl pkcs12 -in cert.pfx -out cert.key -nocerts -nodes</code></li>
  </ul>
  
  <p>My Node.js configuration file looks like this:</p>
  
  <pre class="lang-javascript prettyprint-override"><code>var soap = require('soap'),
  fs = require('fs');
  var url = 'https://file.wsdl';
  var auth = "Basic " + new Buffer("username" + ":" + "password").toString("base64");
  
  soap.createClient( url, {wsdl_options: {
  
      cert: fs.readFileSync('cert/cert.pem'),
      key: fs.readFileSync('cert/cert.key'),
      strictSSL: false,
      rejectUnauthorized: false
  },  wsdl_headers: {Authorization: auth}, endpoint : 'https://linkToPostHttpsRequest'}, function(err, client) {
  
  if(err) {throw err;}
  
  client.admGetSubscriber({input: {msisdn: asdasd}}, function(err, result){
      throw err;
      console.log(result);
  });
  </code></pre>
  
  <p>Node.js show me throws me this error:</p>
  
  <pre class="lang-none prettyprint-override"><code>Error: write EPROTO 101057795:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake
  failure:openssl\ssl\s3_pkt.c:1472:SSL alert number 40
  101057795:error:1409E0E5:SSL routines:ssl3_write_bytes:ssl handshake failure:openssl\ssl\s3_pkt.c:656:
  
      at exports._errnoException (util.js:1007:11)
      at WriteWrap.afterWrite (net.js:793:14)
  </code></pre>
  
  <p>I  tried to import PFX certificate but getting the same error. Are there any other options that I should include?</p>