cert

package
v0.0.0-...-2af199f Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvACMEEmail                      = "ACME_EMAIL"
	EnvACMEDir                        = "ACME_DIR_URL"
	EnvACMEDNSProvider                = "ACME_DNS01_PROVIDER"
	EnvACMEDNSResolvers               = "ACME_DNS_RESOLVERS"
	EnvACMEDisableCompletePropagation = "ACME_DISABLE_COMPLETE_PROPAGATION"
	EnvACMETOSAgreed                  = "ACME_TOS_AGREED"
)
View Source
const (
	EnvTTDebug              = "TEMPTXT_DEBUG"
	EnvTTURL                = "TEMPTXT_URL"
	EnvTTCert               = "TEMPTXT_CERT"
	EnvTTKey                = "TEMPTXT_KEY"
	EnvTTCA                 = "TEMPTXT_CA"
	EnvTTStripAcmeChallenge = "TEMPTXT_STRIP_ACME_CHALLENGE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ACMEIssuer

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

func NewACMEIssuer

func NewACMEIssuer(account map[string]string) (*ACMEIssuer, map[string]string, error)

func (*ACMEIssuer) Account

func (a *ACMEIssuer) Account() string

Account implements Issuer

func (*ACMEIssuer) Issue

func (a *ACMEIssuer) Issue(req CertRequest) (*Bundle, error)

Issue implements Issuer

type Bundle

type Bundle struct {
	Certificate *x509.Certificate
	CA          []*x509.Certificate
	PrivateKey  crypto.PrivateKey
}

func BundleFromBytes

func BundleFromBytes(cert []byte, key []byte, ca [][]byte) (*Bundle, error)

func (*Bundle) CAStrings

func (cb *Bundle) CAStrings() []string

func (*Bundle) CertString

func (cb *Bundle) CertString() string

func (*Bundle) ChainString

func (cb *Bundle) ChainString() string

func (*Bundle) KeyString

func (cb *Bundle) KeyString() (string, error)

func (*Bundle) PFX

func (cb *Bundle) PFX() ([]byte, error)

type CertRequest

type CertRequest struct {
	Domains    []string
	PrivateKey crypto.PrivateKey
	MustStaple bool
	KeyType    string
}

type Issuer

type Issuer interface {
	Issue(CertRequest) (*Bundle, error)
}

type TempTXTProvider

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

func NewTempTXTProvider

func NewTempTXTProvider() (*TempTXTProvider, error)

func (*TempTXTProvider) CleanUp

func (p *TempTXTProvider) CleanUp(domain string, token string, keyAuth string) error

CleanUp implements challenge.Provider

func (*TempTXTProvider) Present

func (p *TempTXTProvider) Present(domain string, token string, keyAuth string) error

Present implements challenge.Provider

Jump to

Keyboard shortcuts

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