in internal/app/http_client.go [57:73]
func loadExtraCACert(rootCAs *x509.CertPool, ca string, log logrus.FieldLogger) error {
l := log.WithFields(logrus.Fields{
flags.AdditionalCACertBundle: ca,
})
caBytes, err := getCA(ca)
if err != nil {
return err
}
// Append our cert to the system pool
if ok := rootCAs.AppendCertsFromPEM(caBytes); !ok {
l.Warn("No certs appended, using system certs only")
}
return nil
}