certer

package
v0.0.0-...-a3811b2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const RootKeyName = "rootCA-key.pem"
View Source
const RootName = "rootCA.pem"

Variables

View Source
var (
	CaRoot = getCAROOT()
)

Functions

This section is empty.

Types

type CertCA

type CertCA struct {
	CaCert *x509.Certificate
	CaKey  crypto.PrivateKey
	// contains filtered or unexported fields
}

func NewCertCA

func NewCertCA() *CertCA

func (*CertCA) Certificate

func (m *CertCA) Certificate() (tls.Certificate, error)

func (*CertCA) GetCertificate

func (m *CertCA) GetCertificate(helloInfo *tls.ClientHelloInfo) (*tls.Certificate, error)

func (*CertCA) HostTLSConfig

func (m *CertCA) HostTLSConfig(host string) (*tls.Config, error)

func (*CertCA) LoadCA

func (m *CertCA) LoadCA() error

LoadCA will load or create the CA at CAROOT.

type CertStorage

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

func NewCertStorage

func NewCertStorage() *CertStorage

func (*CertStorage) Fetch

func (tcs *CertStorage) Fetch(hostname string, gen func() (*tls.Certificate, error)) (*tls.Certificate, error)

type CounterEncryptorRand

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

func NewCounterEncryptorRandFromKey

func NewCounterEncryptorRandFromKey(key interface{}, seed []byte) (r CounterEncryptorRand, err error)

func (*CounterEncryptorRand) Read

func (c *CounterEncryptorRand) Read(b []byte) (n int, err error)

func (*CounterEncryptorRand) Seed

func (c *CounterEncryptorRand) Seed(b []byte)

Jump to

Keyboard shortcuts

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