Skip to content

Commit d0e84b0

Browse files
postwaitry
authored andcommitted
Pass secureProtocol through on tls.Server creation
The secureProtocol option to building the SSL context was not being properly passed through in the credentials in the tls code. This is fixed.
1 parent 90348a6 commit d0e84b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/tls.js

+2
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,7 @@ function Server(/* [options], listener */) {
723723
key: self.key,
724724
cert: self.cert,
725725
ca: self.ca,
726+
secureProtocol: self.secureProtocol,
726727
crl: self.crl
727728
});
728729
//creds.context.setCiphers('RC4-SHA:AES128-SHA:AES256-SHA');
@@ -792,6 +793,7 @@ Server.prototype.setOptions = function(options) {
792793
if (options.key) this.key = options.key;
793794
if (options.cert) this.cert = options.cert;
794795
if (options.ca) this.ca = options.ca;
796+
if (options.secureProtocol) this.secureProtocol = options.secureProtocol;
795797
if (options.crl) this.crl = options.crl;
796798
};
797799

0 commit comments

Comments
 (0)