Versions in this module Expand all Collapse all v1 v1.6.4 Jun 2, 2022 Changes in this version + var ErrNotFound = errors.New("Request OCSP Response not found") + var StatusCode = map[string]int + func ReasonStringToCode(reason string) (reasonCode int, err error) + type DBSource struct + Accessor certdb.Accessor + func (src DBSource) Response(req *ocsp.Request) ([]byte, http.Header, error) + type InMemorySource map[string][]byte + func (src InMemorySource) Response(request *ocsp.Request) ([]byte, http.Header, error) + type Responder struct + Source Source + func NewResponder(source Source, stats Stats) *Responder + func (rs Responder) ServeHTTP(response http.ResponseWriter, request *http.Request) + type SignRequest struct + Certificate *x509.Certificate + Extensions []pkix.Extension + IssuerHash crypto.Hash + NextUpdate *time.Time + Reason int + RevokedAt time.Time + Status string + ThisUpdate *time.Time + type Signer interface + Sign func(req SignRequest) ([]byte, error) + func NewSigner(issuer, responder *x509.Certificate, key crypto.Signer, interval time.Duration) (Signer, error) + func NewSignerFromFile(issuerFile, responderFile, keyFile string, interval time.Duration) (Signer, error) + type Source interface + Response func(*ocsp.Request) ([]byte, http.Header, error) + func NewDBSource(dbAccessor certdb.Accessor) Source + func NewSourceFromDB(DBConfigFile string) (Source, error) + func NewSourceFromFile(responseFile string) (Source, error) + type StandardSigner struct + func (s StandardSigner) Sign(req SignRequest) ([]byte, error) + type Stats interface + ResponseStatus func(ocsp.ResponseStatus)