Documentation
¶
Index ¶
Constants ¶
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 ¶
type Name struct { // https://tools.ietf.org/html/rfc5280#section-4.1.2.4 pkix.RDNSequence }
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) UnmarshalJSON ¶
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"`
}