cert

package
v0.0.0-...-a94344e Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertificateBlockType = "CERTIFICATE"
	MaxCertValidateTime  = time.Hour * 24 * 365 * 100 // ten year self-signed certs
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Issuer

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

func NewIssuer

func NewIssuer(caCertPemData, caKeyPemData []byte) (*Issuer, error)

func (*Issuer) GetCAData

func (m *Issuer) GetCAData() []byte

func (*Issuer) IssueCSR

func (m *Issuer) IssueCSR(commonName string, hosts []string) ([]byte, []byte, error)

Jump to

Keyboard shortcuts

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