utiltest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRSAPrivateKey

func GenerateRSAPrivateKey(t *testing.T) string

GenerateRSAPrivateKey generates RSA private key and returns it as string in PEM format.

func GenerateX509Certificate

func GenerateX509Certificate(t *testing.T) string

GenerateX509Certificate generates random X.509 certificate and returns it as string in PEM format.

Types

type PKI

type PKI struct {
	Certificate string
	PrivateKey  string
}

PKI struct holds X509 certificate and belonging RSA private key in PEM format.

func GeneratePKI

func GeneratePKI(t *testing.T) *PKI

GeneratePKI generates PKI struct

Jump to

Keyboard shortcuts

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