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

Method hasLocalConfig

config/config.go:549–563  ·  view source on GitHub ↗

This checks if the SigningProfile object contains configurations that are only effective with a local signer which has access to CA private key.

()

Source from the content-addressed store, hash-verified

547// This checks if the SigningProfile object contains configurations that are only effective with a local signer
548// which has access to CA private key.
549func (p *SigningProfile) hasLocalConfig() bool {
550 if p.Usage != nil ||
551 p.IssuerURL != nil ||
552 p.OCSP != "" ||
553 p.ExpiryString != "" ||
554 p.BackdateString != "" ||
555 p.CAConstraint.IsCA ||
556 !p.NotBefore.IsZero() ||
557 !p.NotAfter.IsZero() ||
558 p.NameWhitelistString != "" ||
559 len(p.CTLogServers) != 0 {
560 return true
561 }
562 return false
563}
564
565// warnSkippedSettings prints a log warning message about skipped settings
566// in a SigningProfile, usually due to remote signer.

Callers 1

warnSkippedSettingsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected