cert

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCADir = ".snare"
	CertFile     = "ca.pem"
	KeyFile      = "ca-key.pem"
)

Variables

This section is empty.

Functions

func LoadOrCreateCA

func LoadOrCreateCA(dir string) (*x509.Certificate, *ecdsa.PrivateKey, error)

Types

type HostCertCache

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

func NewHostCertCache

func NewHostCertCache(ca *x509.Certificate, key *ecdsa.PrivateKey) *HostCertCache

func (*HostCertCache) GetCertificate

func (h *HostCertCache) GetCertificate(host string) (*x509.Certificate, *ecdsa.PrivateKey, error)

Jump to

Keyboard shortcuts

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