cert

package
Version: v0.0.0-...-dea9669 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootCAPem

func RootCAPem() []byte

RootCAPem .

Types

type Cache

type Cache interface {
	Set(host string, c *tls.Certificate)
	Get(host string) *tls.Certificate
}

Cache store the certificates we signed for hosts

type Certificate

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

Certificate .

func NewCertificate

func NewCertificate(cache Cache) *Certificate

NewCertificate .

func (*Certificate) GeneratePem

func (c *Certificate) GeneratePem(host string) (cert []byte, key []byte, err error)

GeneratePem .

func (*Certificate) GenerateTLSConfig

func (c *Certificate) GenerateTLSConfig(host string) (*tls.Config, error)

GenerateTLSConfig .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL