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

Function SignerFromConfig

cli/ocspsign/ocspsign.go:82–90  ·  view source on GitHub ↗

SignerFromConfig creates a signer from a cli.Config as a helper for cli and serve

(c cli.Config)

Source from the content-addressed store, hash-verified

80
81// SignerFromConfig creates a signer from a cli.Config as a helper for cli and serve
82func SignerFromConfig(c cli.Config) (ocsp.Signer, error) {
83 // if this is called from serve then we need to use the specific responder key file
84 // fallback to key for backwards-compatibility
85 k := c.ResponderKeyFile
86 if k == "" {
87 k = c.KeyFile
88 }
89 return ocsp.NewSignerFromFile(c.CAFile, c.ResponderFile, k, time.Duration(c.Interval))
90}
91
92// Command assembles the definition of Command 'ocspsign'
93var Command = &cli.Command{UsageText: ocspSignerUsageText, Flags: ocspSignerFlags, Main: ocspSignerMain}

Callers 2

serverMainFunction · 0.92
ocspSignerMainFunction · 0.70

Calls 1

NewSignerFromFileFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…