universal.go 366 B

12345678910111213
  1. package universal
  2. import (
  3. "github.com/cloudflare/cfssl/ocsp"
  4. ocspConfig "github.com/cloudflare/cfssl/ocsp/config"
  5. )
  6. // NewSignerFromConfig generates a new OCSP signer from a config object.
  7. func NewSignerFromConfig(cfg ocspConfig.Config) (ocsp.Signer, error) {
  8. return ocsp.NewSignerFromFile(cfg.CACertFile, cfg.ResponderCertFile,
  9. cfg.KeyFile, cfg.Interval)
  10. }