Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hash ¶
func Hash(certificate *x509.Certificate) string
Hash calculates the SHA-256 hash of the Subject Public Key Information (SPKI) object in an x509 certificate (in DER encoding). It returns the full hash as a hex encoded string (suitable for passing to Set.Allow).
Types ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set is a set of pinned x509 public keys.
Click to show internal directories.
Click to hide internal directories.