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

Method SetRemoteCAsFromFile

config/config.go:417–426  ·  view source on GitHub ↗

SetRemoteCAsFromFile reads root CAs from file and updates the properties to set remote CAs for TLS remote requests

(caFile string)

Source from the content-addressed store, hash-verified

415// SetRemoteCAsFromFile reads root CAs from file and updates the properties to set remote CAs for TLS
416// remote requests
417func (p *Signing) SetRemoteCAsFromFile(caFile string) error {
418 if caFile != "" {
419 remoteCAs, err := helpers.LoadPEMCertPool(caFile)
420 if err != nil {
421 return err
422 }
423 p.SetRemoteCAs(remoteCAs)
424 }
425 return nil
426}
427
428// SetRemoteCAs updates the properties to set remote CAs for TLS
429// remote requests

Callers 1

SignerFromConfigAndDBFunction · 0.95

Calls 2

SetRemoteCAsMethod · 0.95
LoadPEMCertPoolFunction · 0.92

Tested by

no test coverage detected