From 6d93b91e8cfab78e77e674177ced2119f960429a Mon Sep 17 00:00:00 2001 From: Augusto Henrique Hentz Date: Thu, 22 Sep 2011 11:07:39 -0300 Subject: [PATCH] Allow the client to specify a CA-list in connect(). --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 10ad1b4..403b4b8 100644 --- a/index.js +++ b/index.js @@ -33,7 +33,7 @@ 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 }; stream = tls.connect(params.port, params.host, options, function() { attachDnode(); });