certs

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

Jump to

Keyboard shortcuts

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