Skip to content

Commit 39c7a2d

Browse files
authored
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.
1 parent b0ba23a commit 39c7a2d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/proxy.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ ReverseProxy.prototype.setupHttpsProxy = function (proxy, websocketsUpgrade, log
252252
key: getCertData(sslOpts.key),
253253
cert: getCertData(sslOpts.cert)
254254
};
255+
256+
// Allows the option to disable older SSL/TLS versions
257+
if(sslOpts.secureOptions) {
258+
ssl.secureOptions = sslOpts.secureOptions;
259+
}
255260

256261
if (sslOpts.ca) {
257262
ssl.ca = getCertData(sslOpts.ca, true);

0 commit comments

Comments
 (0)