From e35f6d9e3535d7103e92c4d1b3c3c55a04403a7c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 4 Oct 2019 11:01:15 +0100 Subject: [PATCH] Allow TLS config node to provide just CA cert Fixes #2297 --- packages/node_modules/@node-red/nodes/core/network/05-tls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/nodes/core/network/05-tls.js b/packages/node_modules/@node-red/nodes/core/network/05-tls.js index f5dca7beb..078bac2cc 100644 --- a/packages/node_modules/@node-red/nodes/core/network/05-tls.js +++ b/packages/node_modules/@node-red/nodes/core/network/05-tls.js @@ -27,7 +27,7 @@ module.exports = function(RED) { var caPath = n.ca.trim(); this.servername = (n.servername||"").trim(); - if ((certPath.length > 0) || (keyPath.length > 0)) { + if ((certPath.length > 0) || (keyPath.length > 0) || (caPath.length > 0)) { if ( (certPath.length > 0) !== (keyPath.length > 0)) { this.valid = false;