testutils

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertFile

func CreateCertFile(offset int, fileName string) (string, *os.File)

func CreateCertificateChain

func CreateCertificateChain(offset int, hostname string, caCertWriter, certWriter, keyWriter io.Writer) ([]byte, []byte)

creates a CA cert, and uses it to sign another cert it returns the generated ca cert and key so they can be reused

func GenerateCertandKey

func GenerateCertandKey(offset int, hostname string, caCert, caKey []byte, certWriter, keyWriter io.Writer)

generate a pair of certificate and key, given a cacert

Types

This section is empty.

Jump to

Keyboard shortcuts

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