Merge pull request #564 from matiu/feat/ciphers2

allow ciphers to be configurable
This commit is contained in:
Matias Alejo Garcia 2016-08-15 21:35:54 -03:00 committed by GitHub
commit ba4257d8f1
1 changed files with 4 additions and 0 deletions

4
bws.js
View File

@ -27,6 +27,10 @@ var serverOpts = {};
if (config.https) {
serverOpts.key = fs.readFileSync(config.privateKeyFile || './ssl/privatekey.pem');
serverOpts.cert = fs.readFileSync(config.certificateFile || './ssl/certificate.pem');
if (config.ciphers) {
serverOpts.ciphers = config.ciphers;
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) {