keyprint

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: BSD-3-Clause Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBytes

func FromBytes(b []byte) string

FromBytes calculates a SHA256 keyprint from cert bytes. This function cannot be used to parse cert files, use FromFile instead.

func FromCertificate

func FromCertificate(cert tls.Certificate) []string

FromCertificate returns keyprints of all certificates in cert.

func FromFile

func FromFile(r io.Reader) ([]string, error)

FromBytes calculates a SHA256 keyprint from a PEM cert file.

func FromURL

func FromURL(u *url.URL) string

FromURL extracts a keyprint from URL query parameters. If it's not set, it returns an empty string.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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