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 5d07377 commit 78f39c9Copy full SHA for 78f39c9
3 files changed
test/fixtures/alice.crt
test/fixtures/multi-alice.crt
test/parallel/test-tls-peer-certificate-multi-keys.js
@@ -29,8 +29,8 @@ const tls = require('tls');
29
const fixtures = require('../common/fixtures');
30
31
const options = {
32
- key: fixtures.readSync('agent.key'),
33
- cert: fixtures.readSync('multi-alice.crt')
+ key: fixtures.readKey('rsa_private.pem'),
+ cert: fixtures.readKey('rsa_cert.crt')
34
};
35
36
const server = tls.createServer(options, function(cleartext) {
@@ -42,7 +42,7 @@ server.once('secureConnection', common.mustCall(function(socket) {
42
// The server's local cert is the client's peer cert.
43
assert.deepStrictEqual(
44
cert.subject.OU,
45
- ['Information Technology', 'Engineering', 'Marketing']
+ ['Test TLS Certificate', 'Engineering']
46
);
47
}));
48
@@ -54,7 +54,7 @@ server.listen(0, common.mustCall(function() {
54
const peerCert = socket.getPeerCertificate();
55
56
peerCert.subject.OU,
57
58
59
server.close();
60
0 commit comments