From 555e815402d9e2d92cca24c6b897dda0d59fa286 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Tue, 27 Jul 2021 22:19:35 +0100 Subject: [PATCH] Copy tls.cert to tls.certificate for GOT --- .../@node-red/nodes/core/network/21-httprequest.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js b/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js index bf193b6af..508299cf4 100644 --- a/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js +++ b/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js @@ -453,6 +453,10 @@ in your Node-RED user directory (${RED.settings.userDir}). opts.https.certificateAuthority = opts.https.ca; delete opts.https.ca; } + if (opts.https.cert) { + opts.https.certificate = opts.https.cert; + delete opt.https.cert; + } } else { if (msg.hasOwnProperty('rejectUnauthorized')) { opts.https = { rejectUnauthorized: msg.rejectUnauthorized };