8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 977fe22 commit aaacddbCopy full SHA for aaacddb
test/parallel/test-tls-handshake-error.js
@@ -1,16 +1,18 @@
1
'use strict';
2
3
const common = require('../common');
4
+
5
if (!common.hasCrypto)
6
common.skip('missing crypto');
7
8
const assert = require('assert');
9
const tls = require('tls');
-const fs = require('fs');
10
11
+const fixtures = require('../common/fixtures');
12
13
const server = tls.createServer({
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
14
+ key: fixtures.readKey('agent1-key.pem'),
15
+ cert: fixtures.readKey('agent1-cert.pem'),
16
rejectUnauthorized: true
17
}, function(c) {
18
}).listen(0, common.mustCall(function() {
0 commit comments