cert_mgmt

package
v0.0.0-...-1f28619 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CERT_VALIDITY_PERIOD = 100 * 365 * 24 * time.Hour

Variables

This section is empty.

Functions

func GenerateKeyPair

func GenerateKeyPair(certFile, keyFile string, validity time.Duration) (utls.Certificate, error)

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.

Jump to

Keyboard shortcuts

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