From 39c7a2da84a2ddddfe046ea80e98800518920516 Mon Sep 17 00:00:00 2001 From: James Thomas Date: Wed, 17 Apr 2019 12:07:54 -0400 Subject: [PATCH] Adding option to disable older SSL/TLS versions Simply pass in "secureOptions" as you normally would to an https config object, and redbird will pass it along into the https proxy server. --- lib/proxy.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/proxy.js b/lib/proxy.js index 7227f59..5980458 100755 --- a/lib/proxy.js +++ b/lib/proxy.js @@ -252,6 +252,11 @@ ReverseProxy.prototype.setupHttpsProxy = function (proxy, websocketsUpgrade, log key: getCertData(sslOpts.key), cert: getCertData(sslOpts.cert) }; + + // Allows the option to disable older SSL/TLS versions + if(sslOpts.secureOptions) { + ssl.secureOptions = sslOpts.secureOptions; + } if (sslOpts.ca) { ssl.ca = getCertData(sslOpts.ca, true);