mirror of https://github.com/nodejs/node.git
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
parent
bc73abe5a8
commit
6003912f81
|
@ -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…
Reference in New Issue