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

Function setCerts

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

Source from the content-addressed store, hash-verified

65}
66
67function setCerts(context, certs, name) {
68 ArrayPrototypeForEach(certs, (cert) => {
69 validateKeyOrCertOption(name, cert);
70 context.setCert(cert);
71 });
72}
73
74function validateKeyOrCertOption(name, value) {
75 if (typeof value !== 'string' && !isArrayBufferView(value)) {

Callers 1

configSecureContextFunction · 0.85

Calls 1

validateKeyOrCertOptionFunction · 0.85

Tested by

no test coverage detected