acme

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const AwsIamPropagationImpediment = 20 * time.Second
View Source
const DnsProviderRoute53 = "route53"

Variables

This section is empty.

Functions

func BuildRoute53DnsProvider

func BuildRoute53DnsProvider(credProvider ...aws.CredentialsProvider) (challenge.Provider, error)

func GeneratePrivateKey

func GeneratePrivateKey() (crypto.PrivateKey, error)

func NewAwsDynamicCredentialsProvider added in v1.12.0

func NewAwsDynamicCredentialsProvider(backend AwsDynamicCredentialsBackend) (aws.CredentialsProvider, error)

Types

type AccountStorage added in v1.12.0

type AccountStorage interface {
	// Authenticate authenticates against the storage subsystem and returns an error about the success of the operation.
	Authenticate() error

	// WriteAccount writes an ACME account to the storage.
	WriteAccount(account certstorage.AcmeAccount) error

	// ReadAccount reads the ACME account data for a given email address from the storage.
	ReadAccount(email string) (*certstorage.AcmeAccount, error)

	// Logout cleans up and logs out of the storage subsystem.
	Logout() error
}

type AcmeDealer

type AcmeDealer interface {
	RegisterAccount() (*registration.Resource, error)
	ObtainCert(domain config.DomainsConfig) (*certstorage.AcmeCertificate, error)
	RenewCert(cert *certstorage.AcmeCertificate) (*certstorage.AcmeCertificate, error)
}

type AwsDynamicCredentialsBackend added in v1.12.0

type AwsDynamicCredentialsBackend interface {
	ReadAwsCredentials() (aws.Credentials, error)
}

type DynamicCredentialsProvider

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

func (*DynamicCredentialsProvider) IsExpired

func (m *DynamicCredentialsProvider) IsExpired() bool

func (*DynamicCredentialsProvider) Retrieve

type GoLego

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

func NewGoLegoDealer

func NewGoLegoDealer(accountStorage AccountStorage, conf config.AcmeVaultConfig, dnsProvider challenge.Provider) (*GoLego, error)

func (*GoLego) ObtainCert

func (l *GoLego) ObtainCert(domain config.DomainsConfig) (*certstorage.AcmeCertificate, error)

func (*GoLego) RegisterAccount

func (l *GoLego) RegisterAccount() (*registration.Resource, error)

func (*GoLego) RenewCert

Jump to

Keyboard shortcuts

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