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

Method OverrideRemotes

config/config.go:382–397  ·  view source on GitHub ↗

OverrideRemotes takes a signing configuration and updates the remote server object to the hostname:port combination sent by remote

(remote string)

Source from the content-addressed store, hash-verified

380// OverrideRemotes takes a signing configuration and updates the remote server object
381// to the hostname:port combination sent by remote
382func (p *Signing) OverrideRemotes(remote string) error {
383 if remote != "" {
384 var err error
385 for _, profile := range p.Profiles {
386 err = profile.updateRemote(remote)
387 if err != nil {
388 return err
389 }
390 }
391 err = p.Default.updateRemote(remote)
392 if err != nil {
393 return err
394 }
395 }
396 return nil
397}
398
399// SetClientCertKeyPairFromFile updates the properties to set client certificates for mutual
400// authenticated TLS remote requests

Callers 8

SignerFromConfigAndDBFunction · 0.95
TestRemoteInfoFunction · 0.80
remoteTLSInfoFunction · 0.80
TestRemoteSignFunction · 0.80
remoteTLSSignFunction · 0.80
TestOverrideRemotesFunction · 0.80
TestAuthRemoteConfigFunction · 0.80

Calls 1

updateRemoteMethod · 0.80

Tested by 7

TestRemoteInfoFunction · 0.64
remoteTLSInfoFunction · 0.64
TestRemoteSignFunction · 0.64
remoteTLSSignFunction · 0.64
TestOverrideRemotesFunction · 0.64
TestAuthRemoteConfigFunction · 0.64