Merge pull request #4882 from hardillb/tls-update

Move SNI, ALPN and Verify Server cert out of check
This commit is contained in:
Nick O'Leary 2024-09-17 13:45:18 +01:00 committed by GitHub
commit 55cfd6fa99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,6 +104,7 @@ module.exports = function(RED) {
if (this.credentials && this.credentials.passphrase) {
opts.passphrase = this.credentials.passphrase;
}
}
if (this.servername) {
opts.servername = this.servername;
}
@ -111,7 +112,6 @@ module.exports = function(RED) {
opts.ALPNProtocols = [this.alpnprotocol];
}
opts.rejectUnauthorized = this.verifyservercert;
}
return opts;
}