acme

package
v0.0.0-...-1465e64 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACMEProviderSupported

func ACMEProviderSupported(provider string) bool

func InitACME

func InitACME(c *config.ServerConfigT) error

func RegisterAccount

func RegisterAccount(ACMEProvider, Email, Kid, Hmac string) error

func SetChallenger

func SetChallenger(legoCfg *lego.Config, instance *ACME, p *config.ServerConfigT) error

Types

type ACME

type ACME struct {
	Client *lego.Client
	// contains filtered or unexported fields
}

func GetACME

func GetACME() *ACME

func (*ACME) Obtain

func (a *ACME) Obtain(domains []string, deadline time.Time) (fullchain, key []byte, err error)

func (*ACME) RetryObtain

func (a *ACME) RetryObtain(domains []string, deadline time.Time) (fullchain, key []byte, err error)

type ACMEUser

type ACMEUser struct {
	Email        string
	Registration *registration.Resource
	Key          crypto.PrivateKey
}

func (*ACMEUser) GetEmail

func (u *ACMEUser) GetEmail() string

func (*ACMEUser) GetPrivateKey

func (u *ACMEUser) GetPrivateKey() crypto.PrivateKey

func (*ACMEUser) GetRegistration

func (u *ACMEUser) GetRegistration() *registration.Resource

Directories

Path Synopsis
http
s3
Package s3 implements an HTTP provider for solving the HTTP-01 challenge using AWS S3.
Package s3 implements an HTTP provider for solving the HTTP-01 challenge using AWS S3.

Jump to

Keyboard shortcuts

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