Documentation
¶
Overview ¶
Package pins checks connections against the root package's Config.Pins (decision 0032): it parses the pins, finds the one covering a host, matches it against a verified chain, and lists a chain's pins for FetchPins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Presented ¶
func Presented(cs tls.ConnectionState) []string
Presented is the first verified chain's (else the peer's) keys as "sha256/<base64>" pins, leaf first.
Types ¶
type Cert ¶
type Cert struct {
Role Role
Subject string
Issuer string
NotAfter time.Time
SPKI string
SPKIHex string
Fingerprint string
}
Cert is a certificate of a verified chain and the values that pin it: the root's CertPin.
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry is a parsed Pin: the SHA-256 hashes it accepts, of keys and of whole certificates.
type Pin ¶
Pin pins a host (and, with IncludeSubdomains, its subdomains) to public keys: the root's Pin, which converts to it.
type Role ¶
type Role int
Role is a certificate's place in a verified chain: the root's CertRole, with the same values.