Reputation: 615
I'm writting a socket stream app in which i need it to work with ssl.
Googled it a while, found a link, but the answer link is broken
Any help is appreciable.
Upvotes: 0
Views: 62
Reputation: 615
After some googling, found out we need to do like
var https = require('https')
, options = {
key : 'ssl key'
, cert : 'ssl cert'
}
;
var server = https.createServer(options, function (req, res) {
});
ss.start(server.listen('8080'));
Upvotes: 0