cert

package
v0.0.0-...-f967be0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadOrGenerateKey

func LoadOrGenerateKey(file string) (*ecdsa.PrivateKey, error)

func SaveKeyPair

func SaveKeyPair(kp *tls.Certificate, crt, key string) error

Types

type ACMEHandler

type ACMEHandler interface {
	HandleDNS01Challenge(fqdn string, record string) error
}

type Manager

type Manager struct {
	FQDN         string
	AccountKey   *ecdsa.PrivateKey
	ACMEConfig   *config.ACME
	ACMEHandlers []ACMEHandler
}

func (*Manager) MaybeRenew

func (m *Manager) MaybeRenew(kp *tls.Certificate) (*tls.Certificate, error)

Jump to

Keyboard shortcuts

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