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