1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Copy tls.cert to tls.certificate for GOT

This commit is contained in:
Ben Hardill 2021-07-27 22:19:35 +01:00
parent 26087f8dc7
commit 555e815402
No known key found for this signature in database
GPG Key ID: 74DD076979ABB1E7

View File

@ -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 };