Skip to content

Commit

Permalink
adding the rest of SSL opts to connect()
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishamant committed Jan 8, 2012
1 parent 3ad3c22 commit 5e172a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ dnode.prototype.connect = function () {
if (params.port) {
params.host = params.host || '127.0.0.1';
if (params.key) {
var options = { key: params.key, cert: params.cert };
var options = {
key: params.key,
cert: params.cert,
ca: params.ca,
requestCert: params.requestCert,
rejectUnauthorized: params.rejectUnauthorized
};
stream = tls.connect(params.port, params.host, options, function() {
attachDnode();
});
Expand Down

0 comments on commit 5e172a7

Please sign in to comment.