Skip to content

Commit

Permalink
Adding option to disable older SSL/TLS versions
Browse files Browse the repository at this point in the history
Simply pass in "secureOptions" as you normally would to an https config object, and redbird will pass it along into the https proxy server.
  • Loading branch information
James9074 authored Apr 17, 2019
1 parent b0ba23a commit 39c7a2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 39c7a2d

Please sign in to comment.