trust

package
v0.0.0-...-c2fff64 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URL_ROOT_ANCHORS           = "https://data.iana.org/root-anchors/root-anchors.xml"
	URL_ROOT_ANCHORS_SIGNATURE = "https://data.iana.org/root-anchors/root-anchors.p7s"
	URL_ROOT_ZONE              = "https://www.internic.net/domain/root.zone"
)

Variables

View Source
var (
	//go:embed ICANN_ROOT_CA.crt
	ICANN_ROOT_CA_PEM  []byte
	ICANN_ROOT_CA_POOL *x509.CertPool
)

Functions

This section is empty.

Types

type DNSResolver

type DNSResolver interface {
	Query(msg *dns.Msg) (resp *dns.Msg, err error)
}

type KeyDigest

type KeyDigest struct {
	dns.DS
	ID         string     `xml:"id,attr"`
	ValidFrom  *time.Time `xml:"validFrom,attr,omitempty"`
	ValidUntil *time.Time `xml:"validUntil,attr,omitempty"`
}

func (KeyDigest) Verify

func (keyDigest KeyDigest) Verify() (err error)

type Option

type Option func(*config)

func WithDNSResolver

func WithDNSResolver(resolver DNSResolver) Option

type RootTrustFetcher

type RootTrustFetcher struct {
	// contains filtered or unexported fields
}

func NewRootTrustFetcher

func NewRootTrustFetcher(options ...Option) (fetcher *RootTrustFetcher, err error)

func (*RootTrustFetcher) FetchVerifyRootKeys

func (rtf *RootTrustFetcher) FetchVerifyRootKeys() (rootKeys map[uint16]*dns.DNSKEY, err error)

type TrustAnchor

type TrustAnchor struct {
	ID        string `xml:"id,attr"`
	Source    string `xml:"source,attr"`
	Zone      string
	KeyDigest []KeyDigest
}

Jump to

Keyboard shortcuts

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