installertest

package
v0.0.0-...-bab1246 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertTemplateGenerator

func CertTemplateGenerator() (*x509.Certificate, error)

func CleanCerts

func CleanCerts(path string) error

func CreateCert

func CreateCert(template, parent *x509.Certificate, pub interface{}, parentPrivateKey interface{}) (cert *x509.Certificate, certPEM []byte, err error)

func GenerateKeyPair

func GenerateKeyPair() (privateKey *rsa.PrivateKey, err error)

Types

type CertsPath

type CertsPath struct {
	ClientCert string
	ClientKey  string
	ServerCert string
	ServerKey  string
	RootKey    string
	RootCert   string
	RootDir    string
}

func CreateTestCerts

func CreateTestCerts() (CertsPath, error)

Jump to

Keyboard shortcuts

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