Skip to content

Instantly share code, notes, and snippets.

@cranic
Created June 14, 2012 17:04
Show Gist options
  • Save cranic/2931505 to your computer and use it in GitHub Desktop.
Save cranic/2931505 to your computer and use it in GitHub Desktop.
var fs = require('fs');
var express = require('express');
var options = {
key: fs.readFileSync('caminho/para/a/chave'),
cert: fs.readFileSync('caminho/para/o/certificado')
};
var app = express.createServer(options);
app.get('/', function(req, res){
res.send('hello world!');
});
app.listen(443);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment