cert

package
v1.9.9-2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP01 = "http01"
	DNS01  = "dns01"
)

Variables

This section is empty.

Functions

func AutoObtain

func AutoObtain()

func GetCertInfo

func GetCertInfo(sslCertificatePath string) (cert *x509.Certificate, err error)

func IssueCert

func IssueCert(payload *ConfigPayload, logChan chan string, errChan chan error)

Types

type AutoCertErrorLog

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

func (*AutoCertErrorLog) Exit

func (t *AutoCertErrorLog) Exit(text string, err error)

func (*AutoCertErrorLog) Push

func (t *AutoCertErrorLog) Push(text string, err error)

func (*AutoCertErrorLog) SetCertModel

func (t *AutoCertErrorLog) SetCertModel(cert *model.Cert)

func (*AutoCertErrorLog) ToString

func (t *AutoCertErrorLog) ToString() (content string)

type ConfigPayload

type ConfigPayload struct {
	ServerName      []string `json:"server_name"`
	ChallengeMethod string   `json:"challenge_method"`
	DNSCredentialID int      `json:"dns_credential_id"`
}

type MyUser

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

MyUser You'll need a user or account type that implements acme.User

func (*MyUser) GetEmail

func (u *MyUser) GetEmail() string

func (*MyUser) GetPrivateKey

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

func (*MyUser) GetRegistration

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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