LoadRootCAs loads the default root certificate authorities from file.
(caBundleFile string)
| 265 | |
| 266 | // LoadRootCAs loads the default root certificate authorities from file. |
| 267 | func 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 | |
| 275 | func defaultTLSConfig(hostname string) *tls.Config { |
| 276 | return &tls.Config{ |
no test coverage detected
searching dependent graphs…