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

Function DefaultConfig

config/config.go:678–685  ·  view source on GitHub ↗

DefaultConfig returns a default configuration specifying basic key usage and a 1 year expiration time. The key usages chosen are signing, key encipherment, client auth and server auth.

()

Source from the content-addressed store, hash-verified

676// usage and a 1 year expiration time. The key usages chosen are
677// signing, key encipherment, client auth and server auth.
678func DefaultConfig() *SigningProfile {
679 d := helpers.OneYear
680 return &SigningProfile{
681 Usage: []string{"signing", "key encipherment", "server auth", "client auth"},
682 Expiry: d,
683 ExpiryString: "8760h",
684 }
685}
686
687// LoadFile attempts to load the configuration file stored at the path
688// and returns the configuration. On error, it returns nil.

Callers 10

NewSignerFunction · 0.92
NewSignerFunction · 0.92
SignerFromConfigAndDBFunction · 0.92
selfSignMainFunction · 0.92
NewCertGeneratorHandlerFunction · 0.92
TestDefaultSignFunction · 0.92
TestSANsFunction · 0.92
TestExtensionsFunction · 0.92
TestDefaultConfigFunction · 0.85
LoadConfigFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestDefaultSignFunction · 0.74
TestSANsFunction · 0.74
TestExtensionsFunction · 0.74
TestDefaultConfigFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…