SetRemoteCAsFromFile reads root CAs from file and updates the properties to set remote CAs for TLS remote requests
(caFile string)
| 415 | // SetRemoteCAsFromFile reads root CAs from file and updates the properties to set remote CAs for TLS |
| 416 | // remote requests |
| 417 | func (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 |
no test coverage detected