MCPcopy Index your code
hub / github.com/nodejs/node / split

Function split

test/parallel/test-tls-client-auth.js:29–34  ·  view source on GitHub ↗
(file, into)

Source from the content-addressed store, hash-verified

27split(server.cert, server);
28
29function split(file, into) {
30 const certs = /([^]*END CERTIFICATE-----\r?\n)(-----BEGIN[^]*)/.exec(file);
31 assert.strictEqual(certs.length, 3);
32 into.single = certs[1];
33 into.subca = certs[2];
34}
35
36// Typical setup, nothing special, complete cert chains sent to peer.
37connect({

Callers 1

Calls 1

execMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…