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 48e1320 commit c58eaafCopy full SHA for c58eaaf
test/parallel/test-tls-getcipher.js
@@ -6,13 +6,14 @@ if (!common.hasCrypto)
6
7
const assert = require('assert');
8
const tls = require('tls');
9
+// import fixtures directly from its module
10
+const fixtures = require('../common/fixtures');
11
-const fs = require('fs');
12
const cipher_list = ['AES128-SHA256', 'AES256-SHA256'];
13
const cipher_version_pattern = /TLS|SSL/;
14
const options = {
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`),
15
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`),
+ key: fixtures.readKey('agent2-key.pem'),
16
+ cert: fixtures.readKey('agent2-cert.pem'),
17
ciphers: cipher_list.join(':'),
18
honorCipherOrder: true
19
};
0 commit comments