certstream

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	CertIndex  int64      `json:"cert_index"`
	CertLink   string     `json:"cert_link"`
	Chain      []LeafCert `json:"chain,omitempty"`
	LeafCert   LeafCert   `json:"leaf_cert"`
	Seen       float64    `json:"seen"`
	Source     Source     `json:"source"`
	UpdateType string     `json:"update_type"`
}

type DomainsEntry

type DomainsEntry struct {
	Data        []string `json:"data"`
	MessageType string   `json:"message_type"`
}

type Entry

type Entry struct {
	Data        Data   `json:"data"`
	MessageType string `json:"message_type"`
	// contains filtered or unexported fields
}

func (*Entry) Clone

func (e *Entry) Clone() Entry

Clone returns a new copy of the Entry.

func (*Entry) JSON

func (e *Entry) JSON() []byte

JSON returns the json encoded Entry as byte slice and caches it for later access.

func (*Entry) JSONDomains

func (e *Entry) JSONDomains() []byte

JSONDomains returns the json encoded domains (DomainsEntry) as byte slice.

func (*Entry) JSONLite

func (e *Entry) JSONLite() []byte

JSONLite does the same as JSON() but removes the chain and cert's DER representation.

func (*Entry) JSONLiteNoCache

func (e *Entry) JSONLiteNoCache() []byte

JSONLiteNoCache does the same as JSONNoCache() but removes the chain and cert's DER representation.

func (*Entry) JSONNoCache

func (e *Entry) JSONNoCache() []byte

JSONNoCache returns the json encoded Entry as byte slice without caching it.

type Extensions

type Extensions struct {
	AuthorityInfoAccess           *string `json:"authorityInfoAccess,omitempty"`
	AuthorityKeyIdentifier        *string `json:"authorityKeyIdentifier,omitempty"`
	BasicConstraints              *string `json:"basicConstraints,omitempty"`
	CertificatePolicies           *string `json:"certificatePolicies,omitempty"`
	CtlSignedCertificateTimestamp *string `json:"ctlSignedCertificateTimestamp,omitempty"`
	ExtendedKeyUsage              *string `json:"extendedKeyUsage,omitempty"`
	KeyUsage                      *string `json:"keyUsage,omitempty"`
	SubjectAltName                *string `json:"subjectAltName,omitempty"`
	SubjectKeyIdentifier          *string `json:"subjectKeyIdentifier,omitempty"`
	CTLPoisonByte                 bool    `json:"ctlPoisonByte,omitempty"`
}

type LeafCert

type LeafCert struct {
	AllDomains         []string   `json:"all_domains"`
	AsDER              string     `json:"as_der,omitempty"`
	Extensions         Extensions `json:"extensions"`
	Fingerprint        string     `json:"fingerprint"`
	SHA1               string     `json:"sha1"`
	SHA256             string     `json:"sha256"`
	NotAfter           int64      `json:"not_after"`
	NotBefore          int64      `json:"not_before"`
	SerialNumber       string     `json:"serial_number"`
	SignatureAlgorithm string     `json:"signature_algorithm"`
	Subject            Subject    `json:"subject"`
	Issuer             Subject    `json:"issuer"`
	IsCA               bool       `json:"is_ca"`
}

type Source

type Source struct {
	Name          string `json:"name"`
	URL           string `json:"url"`
	Operator      string `json:"-"`
	NormalizedURL string `json:"-"`
}

type Subject

type Subject struct {
	C            *string `json:"C"`
	CN           *string `json:"CN"`
	L            *string `json:"L"`
	O            *string `json:"O"`
	OU           *string `json:"OU"`
	ST           *string `json:"ST"`
	Aggregated   *string `json:"aggregated"`
	EmailAddress *string `json:"email_address"`
}

Jump to

Keyboard shortcuts

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