Beast
Beast

Reputation: 615

Enabling ssl in socket stream app

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

Answers (1)

Beast
Beast

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

Related Questions