@@ -127,9 +127,6 @@ module.exports = function createServers(options, listening) {
127
127
port = + ssl . port || 443 ,
128
128
ciphers = ssl . ciphers || CIPHERS ,
129
129
ca = ssl . ca ,
130
- key = fs . readFileSync ( path . resolve ( ssl . root , ssl . key ) ) ,
131
- cert = fs . readFileSync ( path . resolve ( ssl . root , ssl . cert ) ) ,
132
- honorCipherOrder = ! ! ssl . honorCipherOrder ,
133
130
server ,
134
131
args ;
135
132
@@ -148,8 +145,8 @@ module.exports = function createServers(options, listening) {
148
145
//
149
146
// Load default SSL key, cert and ca(s).
150
147
//
151
- key : key ,
152
- cert : cert ,
148
+ key : fs . readFileSync ( path . resolve ( ssl . root , ssl . key ) ) ,
149
+ cert : fs . readFileSync ( path . resolve ( ssl . root , ssl . cert ) ) ,
153
150
ca : ca && ca . map (
154
151
function ( file ) {
155
152
return fs . readFileSync ( path . resolve ( ssl . root , file ) ) ;
@@ -160,7 +157,7 @@ module.exports = function createServers(options, listening) {
160
157
// https://certsimple.com/blog/a-plus-node-js-ssl
161
158
//
162
159
ciphers : ciphers ,
163
- honorCipherOrder : honorCipherOrder ,
160
+ honorCipherOrder : ! ! ssl . honorCipherOrder ,
164
161
//
165
162
// Protect against the POODLE attack by disabling SSLv3
166
163
// @see http://googleonlinesecurity.blogspot.nl/2014/10/this-poodle-bites-exploiting-ssl-30.html
0 commit comments