title: Node JS https server using only PFX
body: <p>I've been running a (Java) web service on my Tomcat server with SSL secured by a PFX wildcard certificate from my employer.</p>
  
  <p>Now I'm trying to port the service to Node Js</p>
  
  <p>In order to run the Node JS server over SSL, I see a lot of guides using this format:</p>
  
  <pre><code>var options = {
   key: fs.readFileSync('server-key.pem'),
   cert: fs.readFileSync('server-cert.cert')
  };
  
  https.createServer(options, app).listen(443);
  </code></pre>
  
  <p>but in my case I only have a server.pfx (p12) file.</p>
  
  <p>Is there any way to implement the server using only the PFX, as we do in Tomcat?  I'm finding it hard to locate any examples of this</p>