Browse Source

test: use RC4-MD5 cipher in tls test

NULL-MD5 is not always compiled into openssl but RC4-MD5 should always be
available.

Fixes #3531.
v0.9.1-release
Ben Noordhuis 13 years ago
parent
commit
6003912f81
  1. 6
      test/simple/test-tls-set-ciphers.js

6
test/simple/test-tls-set-ciphers.js

@ -33,7 +33,7 @@ if (process.platform === 'win32') {
var options = {
key: fs.readFileSync(common.fixturesDir + '/keys/agent2-key.pem'),
cert: fs.readFileSync(common.fixturesDir + '/keys/agent2-cert.pem'),
ciphers: 'NULL-MD5' // it's ultra-fast!
ciphers: 'RC4-MD5'
};
var reply = 'I AM THE WALRUS'; // something recognizable
@ -51,8 +51,8 @@ var server = tls.createServer(options, function(conn) {
});
server.listen(common.PORT, '127.0.0.1', function() {
var cmd = 'openssl s_client -cipher NULL-MD5 -connect 127.0.0.1:' +
common.PORT;
var cmd = 'openssl s_client -cipher ' + options.ciphers +
' -connect 127.0.0.1:' + common.PORT;
exec(cmd, function(err, stdout, stderr) {
if (err) throw err;

Loading…
Cancel
Save