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 fcc19e1 commit c65de59Copy full SHA for c65de59
test/parallel/test-tls-key-mismatch.js
@@ -8,6 +8,8 @@ if (!common.hasCrypto) {
8
const assert = require('assert');
9
const tls = require('tls');
10
const fs = require('fs');
11
+const errorMessageRegex = new RegExp('^Error: error:0B080074:x509 ' +
12
+ 'certificate routines:X509_check_private_key:key values mismatch$');
13
14
const options = {
15
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
@@ -16,4 +18,4 @@ const options = {
16
18
17
19
assert.throws(function() {
20
tls.createSecureContext(options);
-});
21
+}, errorMessageRegex);
0 commit comments