Adding SSL support, release 0.2.3

This commit is contained in:
2018-03-11 15:25:44 -07:00
parent 9fc5d64ceb
commit bc2fbe14e3
6 changed files with 42 additions and 2847 deletions

View File

@ -72,7 +72,24 @@ module.exports = {
if (err) return test.done(err);
test.done();
}
}*/
}*/,
'Connect to secure tcp endpoint': function(test) {
var conn = client.createConnection({
useSslConnection: true,
targetHost: 'localhost',
validateServer: false
}, 'tcp://localhost:1115');
conn.on('error', function (err) {
test.done(err);
});
conn.connect()
.catch(function (err) {
test.done(err);
});
conn.on('connected', function () {
test.done();
});
}
};
testBase.init(module.exports, false);