package
1.6.5
Repository: https://github.com/cloudflare/cfssl.git
Documentation: pkg.go.dev

# Packages

Package config in the ocsp directory provides configuration data for an OCSP signer.

# Functions

NewDBSource creates a new DBSource type with an associated dbAccessor.
NewResponder instantiates a Responder with the give Source.
NewSigner simply constructs a new StandardSigner object from the inputs, taking the interval in seconds.
NewSignerFromFile reads the issuer cert, the responder cert and the responder key from PEM files, and takes an interval in seconds.
NewSourceFromDB reads the given database configuration file and creates a database data source for use with the OCSP responder.
NewSourceFromFile reads the named file into an InMemorySource.
ReasonStringToCode tries to convert a reason string to an integer code.

# Variables

ErrNotFound indicates the request OCSP response was not found.
StatusCode is a map between string statuses sent by cli/api to ocsp int statuses.

# Structs

DBSource represnts a source of OCSP responses backed by the certdb package.
A Responder object provides the HTTP logic to expose a Source of OCSP responses.
SignRequest represents the desired contents of a specific OCSP response.
StandardSigner is the default concrete type of OCSP signer.

# Interfaces

Signer represents a general signer of OCSP responses.
Source represents the logical source of OCSP responses, i.e., the logic that actually chooses a response based on a request.
Stats is a basic interface that allows users to record information about returned responses.

# Type aliases

An InMemorySource is a map from serialNumber -> der(response).