MCPcopy Create free account
hub / github.com/cloudflare/cfssl / LoadRootCAs

Function LoadRootCAs

scan/scan_common.go:267–273  ·  view source on GitHub ↗

LoadRootCAs loads the default root certificate authorities from file.

(caBundleFile string)

Source from the content-addressed store, hash-verified

265
266// LoadRootCAs loads the default root certificate authorities from file.
267func LoadRootCAs(caBundleFile string) (err error) {
268 if caBundleFile != "" {
269 log.Debugf("Loading scan RootCAs: %s", caBundleFile)
270 RootCAs, err = helpers.LoadPEMCertPool(caBundleFile)
271 }
272 return
273}
274
275func defaultTLSConfig(hostname string) *tls.Config {
276 return &tls.Config{

Callers 2

scanMainFunction · 0.92
NewHandlerFunction · 0.92

Calls 2

DebugfFunction · 0.92
LoadPEMCertPoolFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…