Sha256: 3e0dce21ef38241c598bbc357d8335e7d3a4013b35df9bca99f84fc0b3d32968
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
'use strict'; var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { common.skip('missing crypto'); return; } var tls = require('tls'); var exec = require('child_process').exec; var fs = require('fs'); var options = { key: fs.readFileSync(common.fixturesDir + '/keys/agent2-key.pem'), cert: fs.readFileSync(common.fixturesDir + '/keys/agent2-cert.pem'), ciphers: 'ECDHE-RSA-RC4-SHA', ecdhCurve: false }; var server = tls.createServer(options, common.fail); server.listen(0, '127.0.0.1', common.mustCall(function() { var cmd = '"' + common.opensslCli + '" s_client -cipher ' + options.ciphers + ` -connect 127.0.0.1:${this.address().port}`; // for the performance and stability issue in s_client on Windows if (common.isWindows) cmd += ' -no_rand_screen'; exec(cmd, common.mustCall(function(err, stdout, stderr) { // Old versions of openssl will still exit with 0 so we // can't just check if err is not null. assert(stderr.includes('handshake failure')); server.close(); })); }));
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
node-compiler-0.9.1 | vendor/node/test/parallel/test-tls-ecdh-disable.js |