Merge pull request #3092 from hardillb/http-req-ca-fix

Copy tls.cert to tls.certificate for GOT
This commit is contained in:
Nick O'Leary
2021-07-28 10:05:19 +01:00
committed by GitHub
2 changed files with 69 additions and 3 deletions

View File

@@ -475,6 +475,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 opts.https.cert;
}
} else {
if (msg.hasOwnProperty('rejectUnauthorized')) {
opts.https = { rejectUnauthorized: msg.rejectUnauthorized };