ssl

package
v2.0.8+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAData

type CAData struct {
	CA         []byte
	PrivateKey []byte
}

type KeyPair

type KeyPair struct {
	CA          []byte
	Certificate []byte
	PrivateKey  []byte
}

func (KeyPair) IsEmpty

func (k KeyPair) IsEmpty() bool

func (KeyPair) IsValidForIP

func (k KeyPair) IsValidForIP(ip string) bool

type KeyPairGenerator

type KeyPairGenerator struct {
	// contains filtered or unexported fields
}

func NewKeyPairGenerator

func NewKeyPairGenerator(
	keyGenerator keyGenerator,
	createCertificateAuthority createCertificateAuthority,
	createCertificateSigningRequest createCertificateSigningRequest,
	createCertificateHost createCertificateHost,
) KeyPairGenerator

func (KeyPairGenerator) Generate

func (g KeyPairGenerator) Generate(caCommonName, commonName string) (KeyPair, error)

Jump to

Keyboard shortcuts

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