Documentation ¶
Index ¶
Constants ¶
View Source
const CERT_VALIDITY_PERIOD = 100 * 365 * 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
generateKeyPair generates a new X509 key pair.
func LoadX509KeyPair ¶
func LoadX509KeyPair(certFile, keyFile string) (utls.Certificate, error)
LoadX509KeyPair checks for existing X509 key pair, checks if it's expired, and creates a new one if necessary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.