revocation

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

func NewChecker

func NewChecker(client HTTPDoer, now func() time.Time) *Checker

func (*Checker) CheckCert

func (c *Checker) CheckCert(leaf, issuer *x509.Certificate, opts Options) *Info

type HTTPDoer

type HTTPDoer interface {
	Do(*http.Request) (*http.Response, error)
}

type Info added in v0.7.0

type Info struct {
	OverallStatus Status   `json:"overall_status" yaml:"overall_status"`
	CheckedAt     string   `json:"checked_at,omitempty" yaml:"checked_at,omitempty"`
	Results       []Result `json:"results,omitempty" yaml:"results,omitempty"`
}

type Method

type Method string
const (
	MethodCRL  Method = "crl"
	MethodOCSP Method = "ocsp"
)

type Options

type Options struct {
	Methods  []Method
	Timeout  time.Duration
	SoftFail bool
	Now      func() time.Time
	Proxy    *url.URL
}

type Result

type Result struct {
	Method       Method     `json:"method" yaml:"method"`
	Status       Status     `json:"status" yaml:"status"`
	ResponderURL string     `json:"responder_url,omitempty" yaml:"responder_url,omitempty"`
	RevokedAt    *time.Time `json:"revoked_at,omitempty" yaml:"revoked_at,omitempty"`
	Reason       string     `json:"reason,omitempty" yaml:"reason,omitempty"`
	Error        string     `json:"error,omitempty" yaml:"error,omitempty"`
}

type Status

type Status string
const (
	StatusGood       Status = "good"
	StatusRevoked    Status = "revoked"
	StatusUnknown    Status = "unknown"
	StatusNotChecked Status = "not_checked"
	StatusError      Status = "error"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL