Skip to content

Instantly share code, notes, and snippets.

@heapwolf heapwolf/48.js
Created Aug 7, 2012

What would you like to do?
var tls = require('tls'),
fs = require('fs');
var options = {
key: fs.readFileSync('private-key.pem'),
cert: fs.readFileSync('public-cert.pem')
tls.createServer(options, function (s) {
s.write("Hello, World\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.