oneCRL

package
v0.0.0-...-ea10e50 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const OneCRLEndpoint = "https://firefox.settings.services.mozilla.com/v1/buckets/blocklists/collections/certificates/records"

Variables

This section is empty.

Functions

func Retrieve

func Retrieve() (map[string]*OneCRLIntermediate, error)

Retrieve downloads the OneCRL report located at https://firefox.settings.services.mozilla.com/v1/buckets/blocklists/collections/certificates/records and returns a mapping "key"s to entries.

The "key" in this case is the string concatenation of the decimal value of the certificate serial number, the issuer common name, and the issuer organization name.

Types

type Name

Name wraps a a vanilla RDN so that we can attach further methods for deserialization from JSON and extraction of the issuer Common Name and Organization Name.

func (*Name) Key

func (n *Name) Key() (string, string)

func (*Name) UnmarshalJSON

func (n *Name) UnmarshalJSON(raw []byte) error

type OneCRLIntermediate

type OneCRLIntermediate struct {
	Schema  int `json:"schema"`
	Details struct {
		Bug     string `json:"bug"`
		Who     string `json:"who"`
		Why     string `json:"why"`
		Name    string `json:"name"`
		Created string `json:"created"`
	} `json:"details"`
	Enabled      bool   `json:"enabled"`
	IssuerName   Name   `json:"issuerName"`
	SerialNumber string `json:"serialNumber"`
	Id           string `json:"id"`
	LastModified int    `json:"last_modified"`
}

func (*OneCRLIntermediate) Key

func (o *OneCRLIntermediate) Key() string

Key constructs a string that is the concatenation of the certificate serial (decoded from base64 to an decimal value) the issuer common name, and the issuer organization name. This key is used to join the results of OneCRL with the CCADB.

type OneCRLIntermediates

type OneCRLIntermediates struct {
	Data []*OneCRLIntermediate `json:"data"`
}

Jump to

Keyboard shortcuts

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