title: NodeJS https server returning ERR_SSL_PROTOCOL_ERROR using express
body: <p>I'm trying to get SSL https working on my nodejs server but the browser returns a ERR_SSL_PROTOCOL_ERROR</p>
  
  <p>code:</p>
  
  <pre><code>var express = require('express');
  var https = require('https');
  var http = require('http');
  var fs = require('fs');
  
  var options = {
      key: fs.readFileSync('key.pem'),
      cert: fs.readFileSync('cert.pem')
  }
  
  http.createServer(app).listen(80);
  https.createServer(options, app).listen(443);
  </code></pre>