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

Function getCACertificates

lib/tls.js:190–205  ·  view source on GitHub ↗
(type = 'default')

Source from the content-addressed store, hash-verified

188
189// TODO(joyeecheung): support X509Certificate output?
190function getCACertificates(type = 'default') {
191 validateString(type, 'type');
192
193 switch (type) {
194 case 'default':
195 return cacheDefaultCACertificates();
196 case 'bundled':
197 return cacheBundledRootCertificates();
198 case 'system':
199 return cacheSystemCACertificates();
200 case 'extra':
201 return cacheExtraCACertificates();
202 default:
203 throw new ERR_INVALID_ARG_VALUE('type', type);
204 }
205}
206exports.getCACertificates = getCACertificates;
207
208function setDefaultCACertificates(certs) {

Callers

nothing calls this directly

Calls 4

cacheExtraCACertificatesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…