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

Function addCACerts

lib/internal/tls/secure-context.js:60–65  ·  view source on GitHub ↗
(context, certs, name)

Source from the content-addressed store, hash-verified

58}
59
60function addCACerts(context, certs, name) {
61 ArrayPrototypeForEach(certs, (cert) => {
62 validateKeyOrCertOption(name, cert);
63 context.addCACert(cert);
64 });
65}
66
67function setCerts(context, certs, name) {
68 ArrayPrototypeForEach(certs, (cert) => {

Callers 1

configSecureContextFunction · 0.85

Calls 1

validateKeyOrCertOptionFunction · 0.85

Tested by

no test coverage detected