crlwatch

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckJSON

func CheckJSON(ctx context.Context, config *DownloadConfig, ca *x509.Certificate, jsonBytes []byte) error

Types

type DownloadConfig

type DownloadConfig struct {
	HTTPClient *http.Client
	UserAgent  string
}

type RevocationList

type RevocationList struct {
	PublishedAt  time.Time
	Certificates []RevokedCertificate
	NumBytes     int
}

func DownloadCRL

func DownloadCRL(ctx context.Context, config *DownloadConfig, ca *x509.Certificate, url string) (*RevocationList, error)

func ParseRevocationList

func ParseRevocationList(der []byte, ca *x509.Certificate, uri string) (*RevocationList, error)

type RevokedCertificate

type RevokedCertificate struct {
	SerialNumber   *big.Int
	RevocationTime time.Time
	Reason         int
}

Source Files

  • download.go
  • json.go
  • parse.go

Directories

Path Synopsis
cmd
crlwatch-check command

Jump to

Keyboard shortcuts

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