cert

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CA

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

CA handles certificate authority operations

func NewCA

func NewCA(caDir string, log logger.Logger) (*CA, error)

NewCA creates a new CA instance

func (*CA) Cleanup

func (ca *CA) Cleanup() error

Cleanup removes the CA directory if it's temporary

func (*CA) GenerateCertForDomain

func (ca *CA) GenerateCertForDomain(domain string) (*tls.Certificate, error)

GenerateCertForDomain generates a certificate for a specific domain, signed by the CA

Jump to

Keyboard shortcuts

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