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
1 changed files with 4 additions and 0 deletions

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