Documentation
¶
Overview ¶
Package certs creates self-signed certificates and checks certificate files.
Index ¶
Constants ¶
View Source
const Validity = 825 * 24 * time.Hour
Validity of self-signed certificates. 825 days is the longest that macOS and iOS accept.
Variables ¶
This section is empty.
Functions ¶
func CheckPair ¶
func CheckPair(certPEM, keyPEM []byte) (*x509.Certificate, error)
CheckPair parses a certificate and its private key and checks that they match. It returns the first certificate of the chain.
func Names ¶
Names returns the DNS names and IP addresses a self-signed certificate covers for serverName.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.