acme

package
v0.0.0-...-d11cad2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acme

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

func NewAcme

func NewAcme(config Config) *Acme

func (*Acme) AuthorizeUsingHttp

func (a *Acme) AuthorizeUsingHttp(domain string) (string, string, string, string, bool, error)

func (*Acme) AuthorizeUsingHttpAccept

func (a *Acme) AuthorizeUsingHttpAccept(domain string) error

func (*Acme) CreateCSR

func (a *Acme) CreateCSR(domains []string, key *rsa.PrivateKey) ([]byte, error)

func (*Acme) CreateCert

func (a *Acme) CreateCert(csr []byte) ([][]byte, string, error)

func (*Acme) GetLeafAndValidateCert

func (a *Acme) GetLeafAndValidateCert(domain string, der [][]byte, key *rsa.PrivateKey) (leaf *x509.Certificate, bundle []*x509.Certificate, err error)

func (*Acme) Register

func (a *Acme) Register() error

func (*Acme) WaitForAuthz

func (a *Acme) WaitForAuthz(domain, uri string) (bool, error)

type Config

type Config struct {
	AccountKey *rsa.PrivateKey
	Contact    string
}

Jump to

Keyboard shortcuts

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