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

View File

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