// SignerFromConfig creates a signer from a cli.Config as a helper for cli and serve
SignerFromConfig creates a signer from a cli.Config as a helper for cli and serve
// SignerFromConfig creates a signer from a cli . Config as a helper for cli and serve
func SignerFromConfig(c cli.Config) (ocsp.Signer, error) {
	k := c.ResponderKeyFile
	if k == "" {
		k = c.KeyFile
	}
	return ocsp.NewSignerFromFile(c.CAFile, c.ResponderFile, k, time.Duration(c.Interval))
}
func SignerFromConfig ( c cli . Config ) ( ocsp . Signer , error ) { k := c . ResponderKeyFile if k == " " { k = c . KeyFile } return ocsp . NewSignerFromFile ( c . CAFile , c . ResponderFile , k , time . Duration ( c . Interval ) ) }
SignerFromConfig creates a signer from a cli.Config as a helper for cli and serve
SignerFromConfig creates a signer from a cli . Config as a helper for cli and serve
//if this is called from serve then we need to use the specific responder key file //fallback to key for backwards-compatibility