certs

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = logger.Logger.WithPrefix("Violet Certs")

Functions

This section is empty.

Types

type Certs

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

Certs is the certificate loader and management system.

func New

func New(certDir fs.FS, keyDir fs.FS, selfCert bool) *Certs

New creates a new cert list

func (*Certs) Compile

func (c *Certs) Compile()

Compile loads the certificates and keys from the directories.

This method makes use of the rescheduler instead of just ignoring multiple calls.

func (*Certs) GetCertForDomain

func (c *Certs) GetCertForDomain(domain string) *tls.Certificate

func (*Certs) Stop added in v0.0.13

func (c *Certs) Stop()

Jump to

Keyboard shortcuts

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