We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nodejs
Learn more about funding links in repositories.
Report abuse
1 parent 170d9ab commit 62c2c78Copy full SHA for 62c2c78
test/parallel/test-tls-key-mismatch.js
@@ -25,15 +25,16 @@ const common = require('../common');
25
if (!common.hasCrypto)
26
common.skip('missing crypto');
27
28
+const fixtures = require('../common/fixtures');
29
+
30
const assert = require('assert');
31
const tls = require('tls');
-const fs = require('fs');
32
const errorMessageRegex =
33
/^Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch$/;
34
35
const options = {
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
36
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`)
+ key: fixtures.readKey('agent1-key.pem'),
37
+ cert: fixtures.readKey('agent2-cert.pem')
38
};
39
40
assert.throws(function() {
0 commit comments