cert

package
v0.0.0-...-132dddf Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyBits = 2048
)

Variables

This section is empty.

Functions

func GetServerCertificate

func GetServerCertificate(endpoint string) *x509.Certificate

func LoadCaPEM

func LoadCaPEM(caCertFile, caKeyFile string) (*tls.Certificate, error)

func SignCertificate

func SignCertificate(ca *tls.Certificate, templateCert *x509.Certificate) (cert *tls.Certificate, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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