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.
pull/24503/head
Ben Noordhuis 2012-06-25 16:34:59 +02:00
parent bc73abe5a8
commit 6003912f81
1 changed files with 3 additions and 3 deletions

View File

@ -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;