certjson

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	PreCert        bool      `json:",omitempty"`
	Seen           time.Time `json:",omitempty"`
	Signature      []byte    `json:",omitempty"` // SHA256 signature, searchable on crt.sh
	Issuer         Identity  `json:",omitempty"`
	Subject        Identity  `json:",omitempty"`
	DNSNames       []string  `json:",omitempty"`
	EmailAddresses []string  `json:",omitempty"`
	IPAddresses    []string  `json:",omitempty"`
	URIs           []string  `json:",omitempty"`
	NotBefore      time.Time `json:",omitempty"`
	NotAfter       time.Time `json:",omitempty"`
}

func New

func New(cert *certstream.Certificate) (jsoncert *Certificate)

type Identity

type Identity struct {
	Country            string `json:",omitempty"`
	Organization       string `json:",omitempty"`
	OrganizationalUnit string `json:",omitempty"`
	Locality           string `json:",omitempty"`
	Province           string `json:",omitempty"`
	StreetAddress      string `json:",omitempty"`
	PostalCode         string `json:",omitempty"`
	SerialNumber       string `json:",omitempty"`
	CommonName         string `json:",omitempty"`
}

func (*Identity) Fill

func (id *Identity) Fill(name *pkix.Name)

Jump to

Keyboard shortcuts

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