pki

package
v0.0.0-...-597cd30 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertificateValidity = time.Hour * 24 * 365
)

Variables

This section is empty.

Functions

func GenerateKeyPair

func GenerateKeyPair() (private, public []byte, err error)

func GenerateSignedCertAndKey

func GenerateSignedCertAndKey(config *certutil.Config, caCertBytes, caKeyBytes []byte) (keyBytes, certBytes []byte, err error)

GenerateCertAndKey for a given config and valid CA, will check existing certs if they are valid, else will generate new cert and key for the certutil.Config provided

func RootCA

func RootCA(config *certutil.Config) (keyBytes, certBytes []byte, err error)

RootCA for a given config will check existing certs if they are valid, else will generate new root CA for the certutil.Config provided

Types

This section is empty.

Jump to

Keyboard shortcuts

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