acme

package
v0.0.0-...-10e2fbd Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderPrefix = "ACME:"

Variables

This section is empty.

Functions

func NewACMECertificateFactory

func NewACMECertificateFactory(domains []string, configPath string, providerName string, keyFactory keys.KeyPairFactory) certs.CertificateFactory

Types

type ACMECertificateFactory

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

func (*ACMECertificateFactory) Name

func (factory *ACMECertificateFactory) Name() string

func (*ACMECertificateFactory) New

type Config

type Config struct {
	Providers map[string]Provider     `yaml:"providers"`
	Domains   map[string]DomainConfig `yaml:"domains"`
}

func Load

func Load(path string) (*Config, error)

type DomainConfig

type DomainConfig struct {
	Domain            string                  `yaml:"-"`
	Http01Challenge   Http01ChallengeConfig   `yaml:"http-01"`
	TLSAPN01Challenge TLSAPN01ChallengeConfig `yaml:"tls-apn-01"`
}

type Http01ChallengeConfig

type Http01ChallengeConfig struct {
	Enabled bool   `yaml:"enabled"`
	Iface   string `yaml:"iface"`
	Port    int    `ymal:"port"`
}

type Provider

type Provider struct {
	Name              string `yaml:"-"`
	URL               string `yaml:"url"`
	RegistrationEmail string `yaml:"registration_email"`
}

type ProviderRegistration

type ProviderRegistration struct {
	Provider     string `json:"provider"`
	Email        string `json:"email"`
	Key          string `json:"key"`
	Registration *registration.Resource
}

func (*ProviderRegistration) GetEmail

func (providerRegistration *ProviderRegistration) GetEmail() string

func (*ProviderRegistration) GetPrivateKey

func (providerRegistration *ProviderRegistration) GetPrivateKey() crypto.PrivateKey

func (*ProviderRegistration) GetRegistration

func (providerRegistration *ProviderRegistration) GetRegistration() *registration.Resource

type TLSAPN01ChallengeConfig

type TLSAPN01ChallengeConfig struct {
	Enabled bool   `yaml:"enabled"`
	Iface   string `yaml:"iface"`
	Port    int    `ymal:"port"`
}

Jump to

Keyboard shortcuts

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