Browse Source
use the node.js default cipher suite for setting up a tls server instead of specifying our own
activeAddress
Gabe Gattis
9 years ago
No known key found for this signature in database
GPG Key ID: 441430987182732C
2 changed files with
1 additions and
4 deletions
-
bitcorenode/index.js
-
bws.js
|
@ -59,8 +59,6 @@ Service.prototype._readHttpsOptions = function() { |
|
|
var serverOpts = {}; |
|
|
var serverOpts = {}; |
|
|
serverOpts.key = fs.readFileSync(this.httpsOptions.key); |
|
|
serverOpts.key = fs.readFileSync(this.httpsOptions.key); |
|
|
serverOpts.cert = fs.readFileSync(this.httpsOptions.cert); |
|
|
serverOpts.cert = fs.readFileSync(this.httpsOptions.cert); |
|
|
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
|
|
|
// This sets the intermediate CA certs only if they have all been designated in the config.js
|
|
|
if (this.httpsOptions.CAinter1 && this.httpsOptions.CAinter2 && this.httpsOptions.CAroot) { |
|
|
if (this.httpsOptions.CAinter1 && this.httpsOptions.CAinter2 && this.httpsOptions.CAroot) { |
|
|
|
@ -27,8 +27,7 @@ var serverOpts = {}; |
|
|
if (config.https) { |
|
|
if (config.https) { |
|
|
serverOpts.key = fs.readFileSync(config.privateKeyFile || './ssl/privatekey.pem'); |
|
|
serverOpts.key = fs.readFileSync(config.privateKeyFile || './ssl/privatekey.pem'); |
|
|
serverOpts.cert = fs.readFileSync(config.certificateFile || './ssl/certificate.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
|
|
|
// This sets the intermediate CA certs only if they have all been designated in the config.js
|
|
|
if (config.CAinter1 && config.CAinter2 && config.CAroot) { |
|
|
if (config.CAinter1 && config.CAinter2 && config.CAroot) { |
|
|
serverOpts.ca = [fs.readFileSync(config.CAinter1), |
|
|
serverOpts.ca = [fs.readFileSync(config.CAinter1), |
|
|