Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit ab9d702

Browse files
author
OpenShift Bot
committed
Merge pull request #6349 from tiwillia/rc4cipher
Merged by openshift-bot
2 parents 7583314 + 7dec616 commit ab9d702

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

node-proxy/config/web-proxy-config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@
121121
"ssl" : {
122122
"ca" : "/etc/pki/tls/certs/localhost.crt",
123123
"certificate": "/etc/pki/tls/certs/localhost.crt",
124-
"private_key": "/etc/pki/tls/private/localhost.key"
124+
"private_key": "/etc/pki/tls/private/localhost.key",
125+
"ciphers" : "kEECDH:+kEECDH+SHA:kEDH:+kEDH+SHA:+kEDH+CAMELLIA:kECDH:+kECDH+SHA:kRSA:+kRSA+SHA:+kRSA+CAMELLIA:!aNULL:!eNULL:!SSLv2:!RC4:!DES:!EXP:!SEED:!IDEA:+3DES"
125126
}
126127
}
127128
},

node-proxy/lib/utils/http-utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ exports.createProtocolServer = function(protocol, opts) {
2929
break;
3030
case 'https':
3131
var ssl_opts = {
32-
secureProtocol: 'SSLv23_method',
3332
secureOptions: constants.SSL_OP_NO_SSLv3
3433
};
3534
ssl_opts.ca = fs.readFileSync(opts.ca);
3635
ssl_opts.cert = fs.readFileSync(opts.certificate);
3736
ssl_opts.key = fs.readFileSync(opts.private_key);
3837

38+
ssl_opts.ciphers = opts.ciphers || "kEECDH:+kEECDH+SHA:kEDH:+kEDH+SHA:+\
39+
kEDH+CAMELLIA:kECDH:+kECDH+SHA:kRSA:+kRSA+SHA:+kRSA+\
40+
CAMELLIA:!aNULL:!eNULL:!SSLv2:!RC4:!DES:!EXP:!SEED:!IDEA:+3DES";
41+
3942
proto_handler = https.createServer(ssl_opts);
4043
break;
4144
}

node-proxy/openshift-origin-node-proxy.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ fi
132132
%endif
133133
%attr(0755,-,-) %{_bindir}/node-find-proxy-route-files
134134
%attr(0640,-,-) %{_sysconfdir}/openshift/web-proxy-config.json
135+
%config(noreplace) %{_sysconfdir}/openshift/web-proxy-config.json
135136
%attr(0644,-,-) %{_sysconfdir}/logrotate.d/%{name}
136137
%ghost %attr(0660,root,root) %{logroot}/supervisor.log
137138
%dir %attr(0700,apache,apache) %{logroot}

node-proxy/test/wsapp.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ createWebSocketServer(app8080);
5555

5656
var sslcerts_path = "../sslcerts/";
5757
var server_name = "localhost";
58+
var cipher_list = "kEECDH:+kEECDH+SHA:kEDH:+kEDH+SHA:+kEDH+CAMELLIA:kECDH:+kECDH+SHA:kRSA:" +
59+
"+kRSA+SHA:+kRSA+CAMELLIA:!aNULL:!eNULL:!SSLv2:!RC4:!DES:!EXP:!SEED:!IDEA:+3DES";
5860
var ssl_options = {
5961
key: fs.readFileSync(sslcerts_path + server_name + ".key"),
6062
cert: fs.readFileSync(sslcerts_path + server_name + ".crt"),
61-
secureProtocol: 'SSLv23_method',
63+
ciphers: cipher_list,
6264
secureOptions: constants.SSL_OP_NO_SSLv3
6365
};
6466

0 commit comments

Comments
 (0)