Sha256: 5dadd715b685c5c683432f92064eb83c1a7ef5a5cc69c9ea887c2341a806619b

Contents?: true

Size: 658 Bytes

Versions: 5

Compression:

Stored size: 658 Bytes

Contents

'use strict';
var common = require('../common');

if (!common.hasCrypto) {
  common.skip('missing crypto');
  return;
}
var tls = require('tls');

var fs = require('fs');

var options = {
  key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
  cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
};

common.refreshTmpDir();

var server = tls.Server(options, common.mustCall(function(socket) {
  server.close();
}));
server.listen(common.PIPE, common.mustCall(function() {
  var options = { rejectUnauthorized: false };
  var client = tls.connect(common.PIPE, options, common.mustCall(function() {
    client.end();
  }));
}));

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/test/parallel/test-tls-connect-pipe.js
node-compiler-0.9.0 vendor/node-v7.2.1/test/parallel/test-tls-connect-pipe.js
node-compiler-0.8.0 vendor/node-v7.2.0/test/parallel/test-tls-connect-pipe.js
node-compiler-0.7.0 vendor/node-v6.9.1/test/parallel/test-tls-connect-pipe.js
node-compiler-0.7.0 vendor/node-v7.1.0/test/parallel/test-tls-connect-pipe.js