Browse Source

Merge pull request #467 from isocolsky/fix/tls

support TLS 1.2 in standalone BWS
activeAddress
Matias Alejo Garcia 9 years ago
parent
commit
ffd8663766
  1. 9
      bws.js

9
bws.js

@ -27,12 +27,15 @@ var serverOpts = {};
if (config.https) {
serverOpts.key = fs.readFileSync(config.privateKeyFile || './ssl/privatekey.pem');
serverOpts.cert = fs.readFileSync(config.certificateFile || './ssl/certificate.pem');
serverOpts.ciphers = 'ECDHE-RSA-AES256-SHA:AES256-SHA:RC4-SHA:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM';
serverOpts.honorCipherOrder = true;
// This sets the intermediate CA certs only if they have all been designated in the config.js
if (config.CAinter1 && config.CAinter2 && config.CAroot) {
serverOpts.ca = [fs.readFileSync(config.CAinter1),
fs.readFileSync(config.CAinter2),
fs.readFileSync(config.CAroot)
];};
fs.readFileSync(config.CAinter2),
fs.readFileSync(config.CAroot)
];
};
}
var start = function(cb) {

Loading…
Cancel
Save